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
Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git]
/
includes
/
Sanitizer.php
diff --git
a/includes/Sanitizer.php
b/includes/Sanitizer.php
index
5aaa3ed
..
dd4a314
100644
(file)
--- a/
includes/Sanitizer.php
+++ b/
includes/Sanitizer.php
@@
-793,7
+793,7
@@
class Sanitizer {
}
# Strip javascript "expression" from stylesheets.
}
# Strip javascript "expression" from stylesheets.
- # http
://msdn.microsoft.com/workshop/author/dhtml/overview/recalc.asp
+ # http
s://msdn.microsoft.com/en-us/library/ms537634.aspx
if ( $attribute == 'style' ) {
$value = Sanitizer::checkCss( $value );
}
if ( $attribute == 'style' ) {
$value = Sanitizer::checkCss( $value );
}
@@
-906,7
+906,6
@@
class Sanitizer {
* @return string normalized css
*/
public static function normalizeCss( $value ) {
* @return string normalized css
*/
public static function normalizeCss( $value ) {
-
// Decode character references like {
$value = Sanitizer::decodeCharReferences( $value );
// Decode character references like {
$value = Sanitizer::decodeCharReferences( $value );
@@
-1207,7
+1206,7
@@
class Sanitizer {
];
$id = urlencode( strtr( $id, ' ', '_' ) );
];
$id = urlencode( strtr( $id, ' ', '_' ) );
- $id = str
_replace( array_keys( $replace ), array_values( $replace ), $id
);
+ $id = str
tr( $id, $replace
);
if ( !preg_match( '/^[a-zA-Z]/', $id ) && !in_array( 'noninitial', $options ) ) {
// Initial character must be a letter!
if ( !preg_match( '/^[a-zA-Z]/', $id ) && !in_array( 'noninitial', $options ) ) {
// Initial character must be a letter!