From: Matthias Mullie Date: Tue, 27 Jun 2017 13:47:36 +0000 (+0200) Subject: Allow SVGs using an older proposed recommendation DTD X-Git-Tag: 1.31.0-rc.0~2862^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=71df44bf9bf4f494f24c5f656115d03108ea7660;p=lhc%2Fweb%2Fwiklou.git Allow SVGs using an older proposed recommendation DTD Dia software seems to use this DTD (at least in some versions) Bug: T168856 Change-Id: I51ad7ff4a935d4edb78e091142be9c58017dd3af --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 0868ce669e..57bb22ab96 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -1411,7 +1411,9 @@ abstract class UploadBase { 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd', 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd', 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd', - 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd' + 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd', + // https://phabricator.wikimedia.org/T168856 + 'http://www.w3.org/TR/2001/PR-SVG-20010719/DTD/svg10.dtd', ]; if ( $type !== 'PUBLIC' || !in_array( $systemId, $allowedDTDs )