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

bugs in includes/utf/utf_tools.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • 3.0.B3
    • Viewing forums
    • None
    • PHP Environment:
      Database:

      At about line 129,it is:
      return mb_strrpos($str, $search);
      and it should be:
      return mb_strrpos($str, $needle, $offset);

      in function utf8_strpos
      if ($offset === false)
      should be:
      if (is_null($offset))

      in function utf8_substr
      if ($length === false)
      should be:
      if (is_null($length))

      the are on line 141、177、211

            DavidMJ DavidMJ
            freechoice freechoice
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: