Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9020

truncate_string not working correctly when replying

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.0.7
    • Component/s: Other
    • Labels:
      None
    • Environment:
      PHP Environment:
      Database:

      Description

      Data too long for column 'post_subject' at row 1 [1406]

      Text length it tried to allow: 259:

      Re: &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

      Was using this:

      $subject = truncate_string($subject, 254);

      EDIT: Seems to work properly on submitting a topic, but if you reply to a topic it seems not to work...

        Attachments

          Activity

            People

            • Assignee:
              A_Jelly_Doughnut A_Jelly_Doughnut
              Reporter:
              EXreaction EXreaction [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: