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
Merge "API: Add assertuser parameter"
[lhc/web/wiklou.git]
/
includes
/
Sanitizer.php
diff --git
a/includes/Sanitizer.php
b/includes/Sanitizer.php
index
8f1fc99
..
4069658
100644
(file)
--- a/
includes/Sanitizer.php
+++ b/
includes/Sanitizer.php
@@
-1015,6
+1015,7
@@
class Sanitizer {
| url\s*\(
| image\s*\(
| image-set\s*\(
| url\s*\(
| image\s*\(
| image-set\s*\(
+ | attr\s*\([^)]+[\s,]+url
!ix', $value ) ) {
return '/* insecure input */';
}
!ix', $value ) ) {
return '/* insecure input */';
}
@@
-1867,7
+1868,7
@@
class Sanitizer {
list( /* $whole */, $protocol, $host, $rest ) = $matches;
// Characters that will be ignored in IDNs.
list( /* $whole */, $protocol, $host, $rest ) = $matches;
// Characters that will be ignored in IDNs.
- // http
://tools.ietf.org/html/
3454#section-3.1
+ // http
s://tools.ietf.org/html/rfc
3454#section-3.1
// Strip them before further processing so blacklists and such work.
$strip = "/
\\s| # general whitespace
// Strip them before further processing so blacklists and such work.
$strip = "/
\\s| # general whitespace