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
Make RecentChange::cleanupForIRC() also call Sanitizer::decodeCharReferences() to...
[lhc/web/wiklou.git]
/
includes
/
RecentChange.php
diff --git
a/includes/RecentChange.php
b/includes/RecentChange.php
index
50b949c
..
8e3f110
100644
(file)
--- a/
includes/RecentChange.php
+++ b/
includes/RecentChange.php
@@
-235,12
+235,12
@@
class RecentChange
}
/**
}
/**
- * Remove newlines
and carriage return
s
+ * Remove newlines
, carriage returns and decode html entite
s
* @param string $line
* @return string
*/
public static function cleanupForIRC( $text ) {
* @param string $line
* @return string
*/
public static function cleanupForIRC( $text ) {
- return
str_replace(array("\n", "\r"), array("", ""), $text
);
+ return
Sanitizer::decodeCharReferences( str_replace( array( "\n", "\r" ), array( "", "" ), $text )
);
}
/**
}
/**