dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Rewrote the url protocol thing to not suck
[lhc/web/wiklou.git]
/
includes
/
Sanitizer.php
diff --git
a/includes/Sanitizer.php
b/includes/Sanitizer.php
index
4e478c6
..
ef92e28
100644
(file)
--- 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 ) {
* @todo Check for unique id attribute :P
*/
function fixTagAttributes( $text, $element ) {
- global $wgUrlProtocols;
if( trim( $text ) == '' ) {
return '';
}
if( trim( $text ) == '' ) {
return '';
}
@@
-585,7
+584,7
@@
class Sanitizer {
# Stupid hack
$value = preg_replace_callback(
# Stupid hack
$value = preg_replace_callback(
- '/(' .
$wgUrlProtocols
. ')/',
+ '/(' .
wfUrlProtocols()
. ')/',
array( 'Sanitizer', 'armorLinksCallback' ),
$value );
array( 'Sanitizer', 'armorLinksCallback' ),
$value );