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

Error on posting local image when script path is empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.2, 3.1.11, 3.2.1
    • Fix Version/s: 3.2.2-RC1
    • Component/s: Posting
    • Labels:
      None
    • Environment:
      PHP Environment: 4.4.9
      Database: MySQL 5.0.45

      Description

      This might not be strictly a bug, but misconfiguration of the server settings, however it might not be clear to a normal user.

      The scenario:
      Force server URL settings on: Yes
      Script path: empty

      I'm posting an image hosted on the same URL as the board, e.g.

      [img]http://www.phpbb.cz/adm/images/icon_edit.gif[/img]

      Posting produces this error:

      [phpBB Debug] PHP Notice: in file /includes/message_parser.php on line 994: strpos() [function.strpos]: Empty delimiter.

      Since in this function call:

      strpos($url, $check_path) 

      $check_path is the script_path in the ACP and is empty when calling the function.

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              ameeck ameeck
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: