mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
added explicit http and https rejection
This commit is contained in:
1 parent
e780c5fa4a
commit
1093251990
1 file changed
+4
@@ -19,6 +19,10 @@ class AppwriteDomain extends Domain
|
||||
return false;
|
||||
}
|
||||
|
||||
if (preg_match('/^https?:\/\//', $value)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (str_starts_with($value, '.') || str_ends_with($value, '.') || str_contains($value, '..')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user