dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b68f99c
)
Allow empty href in SVGs
author
Mark Holmquist
<mholmquist@wikimedia.org>
Mon, 31 Oct 2016 13:21:38 +0000
(08:21 -0500)
committer
Mark Holmquist
<mholmquist@wikimedia.org>
Mon, 31 Oct 2016 13:29:38 +0000
(08:29 -0500)
bawolff is right, this shouldn't harm anything.
Bug: T149549
Change-Id: I377efdee7478940154ef5ec921bd0c8f7ec0c110
includes/upload/UploadBase.php
patch
|
blob
|
history
diff --git
a/includes/upload/UploadBase.php
b/includes/upload/UploadBase.php
index
3422632
..
ea6ef30
100644
(file)
--- a/
includes/upload/UploadBase.php
+++ b/
includes/upload/UploadBase.php
@@
-1507,6
+1507,7
@@
abstract class UploadBase {
# fragment links are allowed. For all other tags, only data:
# and fragment are allowed.
if ( $stripped == 'href'
+ && $value !== ''
&& strpos( $value, 'data:' ) !== 0
&& strpos( $value, '#' ) !== 0
) {