SVG upload with specific error (warning) message when blocking
authorUbuntu <ubuntu@ip-172-31-39-38.us-west-2.compute.internal>
Thu, 5 Mar 2015 08:02:34 +0000 (08:02 +0000)
committerBrian Wolff <bawolff+wn@gmail.com>
Mon, 25 May 2015 20:47:45 +0000 (20:47 +0000)
commitbf6e57d32e7ace42435d6c11ef90d884df470ca1
tree8077868de961124e844e2b4f152adb82e538bfca
parent5a9e236c33115d959b59e52b17cef81696dcf207
SVG upload with specific error (warning) message when blocking

This patch is to generate specific error (warning) message when
blocking an svg file.

The checkSvgScriptCallback function has been updated, and it's
return type is changed from boolean to array.

A new variable is added to XmlTypeCheck class that contains the
type of error when svg file is uploaded, which is used to generate
concrete error messages later on.

I have added concrete error messages to i18n/en.json and their description
to qqq.json file. Please review the error messages and their description.

Bug: T85924
Change-Id: I3f687bf5b86ce66b703591b85fd03f073aacff4f
includes/libs/XmlTypeCheck.php
includes/upload/UploadBase.php
languages/i18n/en.json
languages/i18n/qqq.json