summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-04-18 17:45:01 +0200
committerMichał Górny <mgorny@gentoo.org>2016-04-18 17:45:01 +0200
commit181e46892590b84add173078455c4b8a99259e85 (patch)
treeaf0a013a6fcee58b97449f4f8cdc15a4df99727c
parentmetadata: Use more portable fake-attr uniquity constraint for subslots (diff)
downloadgentoo-181e46892590b84add173078455c4b8a99259e85.tar.gz
gentoo-181e46892590b84add173078455c4b8a99259e85.tar.bz2
gentoo-181e46892590b84add173078455c4b8a99259e85.zip
Disallow whitespace in URLs
-rw-r--r--metadata.xsd2
-rw-r--r--projects.xsd2
-rw-r--r--repositories.xsd2
3 files changed, 3 insertions, 3 deletions
diff --git a/metadata.xsd b/metadata.xsd
index 0ead09ee8342..8bc6a4eff855 100644
--- a/metadata.xsd
+++ b/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/projects.xsd b/projects.xsd
index 770bd6769c6c..beaaf4e83fb2 100644
--- a/projects.xsd
+++ b/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/repositories.xsd b/repositories.xsd
index ef6792e2c96d..32a55acc7f92 100644
--- a/repositories.xsd
+++ b/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>