X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FSanitizer.php;h=ef92e28db37902960ee7fd789f75250b793183c1;hb=3bff5e6545a5a128adf61760d381a3208705d8ba;hp=4e478c6c751470cf323eed18bd3bdf1e5e0660f0;hpb=a329386d7890238a53dd6ff56e38fd180a573c43;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 4e478c6c75..ef92e28db3 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -525,7 +525,6 @@ class Sanitizer { * @todo Check for unique id attribute :P */ function fixTagAttributes( $text, $element ) { - global $wgUrlProtocols; if( trim( $text ) == '' ) { return ''; } @@ -585,7 +584,7 @@ class Sanitizer { # Stupid hack $value = preg_replace_callback( - '/(' . $wgUrlProtocols . ')/', + '/(' . wfUrlProtocols() . ')/', array( 'Sanitizer', 'armorLinksCallback' ), $value );