Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.7, 1.8, 1.9
    • Fix Version/s: 1.6.6, 1.7.4, 1.8.4, 1.9
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      incorrect use of preg_replace:

      case PARAM_HOST: // allow FQDN or IPv4 dotted quad
      preg_replace('/[^\.\d\w-]/','', $param ); // only allowed chars
      ....

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            skodak Petr Skoda added a comment -

            fixed in cvs

            Show
            skodak Petr Skoda added a comment - fixed in cvs
            Hide
            skodak Petr Skoda added a comment -

            downgrading - no dangerous characters should be able to get through

            Show
            skodak Petr Skoda added a comment - downgrading - no dangerous characters should be able to get through

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                skodak Petr Skoda
                Tester:
                Nobody
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jan/08