Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7845

Error on posting local image when script path is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.2-RC1
    • 3.0.2, 3.1.11, 3.2.1
    • Posting
    • None
    • PHP Environment: 4.4.9
      Database: MySQL 5.0.45

      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.

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

              Created:
              Updated:
              Resolved: