added explicit http and https rejection

This commit is contained in:
Harsh Mahajan committed 2025-08-01 12:48:52 +05:30
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;
}