SECURITY: Return error on invalid XML for SVGs
authorcsteipp <csteipp@wikimedia.org>
Thu, 19 Dec 2013 20:52:18 +0000 (12:52 -0800)
committercsteipp <csteipp@wikimedia.org>
Tue, 14 Jan 2014 06:15:27 +0000 (22:15 -0800)
commitb4260e2daa2c815d74d4ff1a6d65663e06bd5369
tree402efac9907940e98de796d824316e5dc92e3593
parent93891d1b5d089c3c1157085165af0f50307b0b63
SECURITY: Return error on invalid XML for SVGs

Return an error from UploadBase::detectScriptInSvg when the svg has
XML that cannot be parsed. Usually the XML is invalid, or the parser has
run out of memory trying to parse the file.

This patch is rebased on top of bug 57550.

Bug: 58553
Change-Id: I32661a27d7417cc2c69b844c805b190d6486d17a
includes/upload/UploadBase.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php