Merge "Allow empty href in SVGs"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 31 Oct 2016 14:32:39 +0000 (14:32 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 31 Oct 2016 14:32:39 +0000 (14:32 +0000)
includes/upload/UploadBase.php

index 3422632..ea6ef30 100644 (file)
@@ -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
                        ) {