diff --git a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch index c206b52c..a5ee69dd 100644 --- a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch +++ b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch @@ -253,20 +253,13 @@ - links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, # - using characters [< > "] in links is not allowed + mode="schematron-get-full-path-2">links must start with one of: http://, https://, mailto:, tel:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, # diff --git a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl index 6e4551bc..494d3a2b 100644 --- a/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl +++ b/src/lib/eZ/RichText/Resources/schemas/docbook/docbook.iso.sch.xsl @@ -79,7 +79,4 @@ -links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, # - - -using characters [< > "] in links is not allowed +links must start with one of: http://, https://, mailto:, tel:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, # diff --git a/tests/lib/eZ/FieldType/RichTextTest.php b/tests/lib/eZ/FieldType/RichTextTest.php index 3c4611ae..2ff29b2a 100644 --- a/tests/lib/eZ/FieldType/RichTextTest.php +++ b/tests/lib/eZ/FieldType/RichTextTest.php @@ -224,7 +224,7 @@ public function providerForTestValidate() [ new ValidationError( "Validation of XML content failed:\n" . - '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #', + '/section/para/link: links must start with one of: http://, https://, mailto:, tel:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #', null, [], 'xml' @@ -239,7 +239,7 @@ public function providerForTestValidate() [ new ValidationError( "Validation of XML content failed:\n" . - '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #', + '/section/para/link: links must start with one of: http://, https://, mailto:, tel:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #', null, [], 'xml' @@ -252,13 +252,6 @@ public function providerForTestValidate() link ', [ - new ValidationError( - "Validation of XML content failed:\n" . - '/section/para/link: using characters [< > "] in links is not allowed', - null, - [], - 'xml' - ), ], ], [ @@ -269,7 +262,7 @@ public function providerForTestValidate() [ new ValidationError( "Validation of XML content failed:\n" . - '/section/para/link: links must start with one of: http://, https://, mailto:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #', + '/section/para/link: links must start with one of: http://, https://, mailto:, tel:, ezcontent://, ezlocation://, ezremote://, ezurl://, /, #', null, [], 'xml'