X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FIEUrlExtension.php;h=216d9b78604c6c8802f63cf52ddc53c57162e7e2;hb=170e23a2410fd0402019a4477a95075d531f5828;hp=79387e632d589517d8a2ea6ad40d67ff559bb54e;hpb=1f0fcc0f39211375f03e2e6e87fd5be179eff231;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/IEUrlExtension.php b/includes/libs/IEUrlExtension.php index 79387e632d..216d9b7860 100644 --- a/includes/libs/IEUrlExtension.php +++ b/includes/libs/IEUrlExtension.php @@ -119,7 +119,6 @@ class IEUrlExtension { if ( !preg_match( '/^[a-zA-Z0-9_-]+$/', $extension ) ) { // Non-alphanumeric extension, unlikely to be registered. - // // The regex above is known to match all registered file extensions // in a default Windows XP installation. It's important to allow // extensions with ampersands and percent signs, since that reduces @@ -232,7 +231,7 @@ class IEUrlExtension { } // We found an illegal character or another dot // Skip to that character and continue the loop - $pos = $nextPos + 1; + $pos = $nextPos; $remainingLength = $urlLength - $pos; } return false;