[Fix] Enhanced security for OpenAPI and JSON Loader Integration (#1122)
This commit is contained in:
committed by
GitHub
parent
1878f8d4fc
commit
f7696d1dc1
@@ -35,7 +35,7 @@ class JSONReader:
|
||||
return ["\n".join(useful_lines)]
|
||||
|
||||
|
||||
VALID_URL_PATTERN = "^https:\/\/[0-9A-z.]+.[0-9A-z.]+.[a-z]+\/.*\.json$"
|
||||
VALID_URL_PATTERN = "^https:\/\/[0-9A-Za-z]+(\.[0-9A-Za-z]+)*\/[0-9A-Za-z_\/]*\.json$"
|
||||
|
||||
|
||||
class JSONLoader(BaseLoader):
|
||||
|
||||
Reference in New Issue
Block a user