From: Mark Holmquist Date: Mon, 31 Oct 2016 13:21:38 +0000 (-0500) Subject: Allow empty href in SVGs X-Git-Tag: 1.31.0-rc.0~4992^2 X-Git-Url: http://git.cyclocoop.org/%27http:/code.google.com/p/ie7-js/00?a=commitdiff_plain;h=a3d562ccd1474d5fa9492ea1290796cb1c7cbcfa;p=lhc%2Fweb%2Fwiklou.git Allow empty href in SVGs bawolff is right, this shouldn't harm anything. Bug: T149549 Change-Id: I377efdee7478940154ef5ec921bd0c8f7ec0c110 --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 34226323ad..ea6ef30bdd 100644 --- 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 ) {