fix: reject control characters in manifest URLs
This commit is contained in:
@@ -84,6 +84,11 @@
|
||||
{
|
||||
"$ref": "#/$defs/nonEmptyString"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "URL references must not contain C0 control characters or DEL.",
|
||||
"pattern": "^[^\\u0000-\\u001F\\u007F]*$"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Backslashes are not URL path separators in toolbox documents.",
|
||||
@@ -92,17 +97,17 @@
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Explicit schemes are limited to HTTP and HTTPS; relative references remain valid.",
|
||||
"pattern": "^[\\t\\n\\r ]*(?:[Hh][Tt][Tt][Pp][Ss]?:|(?!(?:[A-Za-z][A-Za-z0-9+.-]*):))"
|
||||
"pattern": "^ *(?:[Hh][Tt][Tt][Pp][Ss]?:|(?!(?:[A-Za-z][A-Za-z0-9+.-]*):))"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "An explicit HTTP(S) authority must not be empty.",
|
||||
"pattern": "^(?![\\t\\n\\r ]*[Hh][Tt][Tt][Pp][Ss]?:/+(?:[?#]|$))"
|
||||
"pattern": "^(?! *[Hh][Tt][Tt][Pp][Ss]?:/+(?:[?#]|$))"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "HTTP(S) authority references must not contain credentials.",
|
||||
"pattern": "^[\\t\\n\\r ]*(?!(?:[Hh][Tt][Tt][Pp]:/*|[Hh][Tt][Tt][Pp][Ss]:/+|/+)[^/?#]*@)"
|
||||
"pattern": "^ *(?!(?:[Hh][Tt][Tt][Pp]:/*|[Hh][Tt][Tt][Pp][Ss]:/+|/+)[^/?#]*@)"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user