diff --git a/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch b/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch
index 4129880d..a64cd570 100644
--- a/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch
+++ b/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch
@@ -249,8 +249,21 @@
+
+
- using scripts in links is not allowed
+
+ links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, #
+ using characters [< > "] in links is not allowed
diff --git a/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch.xsl b/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch.xsl
index 075885c0..70c48120 100644
--- a/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch.xsl
+++ b/src/bundle/Resources/richtext/schemas/docbook/docbook.iso.sch.xsl
@@ -73,10 +73,13 @@
ezlink must not occur in the descendants of link
-
+
-using scripts in links is not allowed
+links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, #
+
+
+using characters [< > "] in links is not allowed
diff --git a/tests/lib/FieldType/RichTextTest.php b/tests/lib/FieldType/RichTextTest.php
index d9e6185b..06711276 100644
--- a/tests/lib/FieldType/RichTextTest.php
+++ b/tests/lib/FieldType/RichTextTest.php
@@ -229,7 +229,37 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
- '/section/para/link: using scripts in links is not allowed',
+ '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, #',
+ null,
+ [],
+ 'xml'
+ ),
+ ],
+ ],
+ [
+ '
+',
+ [
+ new ValidationError(
+ "Validation of XML content failed:\n" .
+ '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, #',
+ null,
+ [],
+ 'xml'
+ ),
+ ],
+ ],
+ [
+ '
+',
+ [
+ new ValidationError(
+ "Validation of XML content failed:\n" .
+ '/section/para/link: using characters [< > "] in links is not allowed',
null,
[],
'xml'
@@ -244,7 +274,7 @@ public function providerForTestValidate()
[
new ValidationError(
"Validation of XML content failed:\n" .
- '/section/para/link: using scripts in links is not allowed',
+ '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, #',
null,
[],
'xml'