Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63720

Review and fix incorrect strpos() @ lib/filelib.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.4.5, 3.5.2, 3.6
    • Files API
    • None
    • MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE

      Discovered when playing with PHP 7.3 @ MDL-63420, there is a wrong strpos() use in lib/filelib.php

      $pos = strpos('/', $current, 8);

      It needs to be reviewed, surely params are swapped and there is an attempt to ignore the first protocol chars or something like that.

      Ciao

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.