From 53c17b6f75a61060660f65ef58817254bd974015 Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Wed, 11 Oct 2017 02:04:08 -0400 Subject: [PATCH] Fix SVG href error message to be more accurate and useful Change-Id: I2519e1802a62e4d7c1d666b4325982063ff9b40c --- languages/i18n/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 282b906f31..79b0f6062d 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1612,7 +1612,7 @@ "uploaded-script-svg": "Found scriptable element \"$1\" in the uploaded SVG file.", "uploaded-hostile-svg": "Found unsafe CSS in the style element of uploaded SVG file.", "uploaded-event-handler-on-svg": "Setting event-handler attributes $1=\"$2\" is not allowed in SVG files.", - "uploaded-href-attribute-svg": "href attributes in SVG files are only allowed to link to http:// or https:// targets, found <$1 $2=\"$3\">.", + "uploaded-href-attribute-svg": " elements can only link (href) to data: (embedded file), http:// or https://, or fragment (#, same-document) targets. For other elements, such as , only data: and fragment are allowed. Try embedding images when exporting your SVG. Found <$1 $2=\"$3\">.", "uploaded-href-unsafe-target-svg": "Found href to unsafe data: URI target <$1 $2=\"$3\"> in the uploaded SVG file.", "uploaded-animate-svg": "Found \"animate\" tag that might be changing href, using the \"from\" attribute <$1 $2=\"$3\"> in the uploaded SVG file.", "uploaded-setting-event-handler-svg": "Setting event-handler attributes is blocked, found <$1 $2=\"$3\"> in the uploaded SVG file.", -- 2.20.1