summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRepository QA checks <repo-qa-checks@gentoo.org>2016-04-18 16:09:32 +0000
committerRepository QA checks <repo-qa-checks@gentoo.org>2016-04-18 16:09:32 +0000
commit64414b38b439878abdb4ba27b7eb831562072fc5 (patch)
tree0b19bce55c9ab4b1f95270548f7347e3280d7f8f
parentMerge updates from master (diff)
parentDisallow whitespace in URLs (diff)
downloadgentoo-64414b38b439878abdb4ba27b7eb831562072fc5.tar.gz
gentoo-64414b38b439878abdb4ba27b7eb831562072fc5.tar.bz2
gentoo-64414b38b439878abdb4ba27b7eb831562072fc5.zip
Merge commit '181e46892590b84add173078455c4b8a99259e85'
-rw-r--r--metadata/xml-schema/metadata.xsd2
-rw-r--r--metadata/xml-schema/projects.xsd2
-rw-r--r--metadata/xml-schema/repositories.xsd2
3 files changed, 3 insertions, 3 deletions
diff --git a/metadata/xml-schema/metadata.xsd b/metadata/xml-schema/metadata.xsd
index 0ead09ee8342..8bc6a4eff855 100644
--- a/metadata/xml-schema/metadata.xsd
+++ b/metadata/xml-schema/metadata.xsd
@@ -532,7 +532,7 @@
<xs:simpleType name='urlType'>
<xs:restriction base='xs:token'>
<!-- TODO: something better? -->
- <xs:pattern value="(mailto:[^@]+@[^.]+\..+|https?://.+)"/>
+ <xs:pattern value="(mailto:[^@]+@[^.\s]+\.\S+|https?://\S+)"/>
</xs:restriction>
</xs:simpleType>
diff --git a/metadata/xml-schema/projects.xsd b/metadata/xml-schema/projects.xsd
index 770bd6769c6c..beaaf4e83fb2 100644
--- a/metadata/xml-schema/projects.xsd
+++ b/metadata/xml-schema/projects.xsd
@@ -85,7 +85,7 @@
<xs:simpleType name='urlType'>
<xs:restriction base='xs:token'>
<!-- TODO: something better? -->
- <xs:pattern value="(mailto:[^@]+@[^.]+\..+|https?://.+)"/>
+ <xs:pattern value="https?://\S+"/>
</xs:restriction>
</xs:simpleType>
diff --git a/metadata/xml-schema/repositories.xsd b/metadata/xml-schema/repositories.xsd
index ef6792e2c96d..32a55acc7f92 100644
--- a/metadata/xml-schema/repositories.xsd
+++ b/metadata/xml-schema/repositories.xsd
@@ -340,7 +340,7 @@
<xs:simpleType name='urlType'>
<xs:restriction base='xs:token'>
<!-- TODO: something better? -->
- <xs:pattern value="[^:]+:.+"/>
+ <xs:pattern value="[^:\s]+:\S+"/>
</xs:restriction>
</xs:simpleType>