mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Convert rule domains to lowercase
This commit is contained in:
@@ -72,6 +72,7 @@ class Create extends Action
|
||||
|
||||
public function action(string $domain, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, array $platform, Log $log)
|
||||
{
|
||||
$domain = \strtolower($domain);
|
||||
$this->validateDomainRestrictions($domain, $platform);
|
||||
|
||||
// TODO: (@Meldiron) Remove after 1.7.x migration
|
||||
|
||||
@@ -77,6 +77,7 @@ class Create extends Action
|
||||
|
||||
public function action(string $domain, string $functionId, string $branch, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject, array $platform, Log $log)
|
||||
{
|
||||
$domain = \strtolower($domain);
|
||||
$this->validateDomainRestrictions($domain, $platform);
|
||||
|
||||
$function = $dbForProject->getDocument('functions', $functionId);
|
||||
|
||||
@@ -80,6 +80,7 @@ class Create extends Action
|
||||
|
||||
public function action(string $domain, string $url, int $statusCode, string $resourceId, string $resourceType, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject, array $platform, Log $log)
|
||||
{
|
||||
$domain = \strtolower($domain);
|
||||
$this->validateDomainRestrictions($domain, $platform);
|
||||
|
||||
$collection = match ($resourceType) {
|
||||
|
||||
@@ -77,6 +77,7 @@ class Create extends Action
|
||||
|
||||
public function action(string $domain, string $siteId, string $branch, Response $response, Document $project, Certificate $queueForCertificates, Event $queueForEvents, Database $dbForPlatform, Database $dbForProject, array $platform, Log $log)
|
||||
{
|
||||
$domain = \strtolower($domain);
|
||||
$this->validateDomainRestrictions($domain, $platform);
|
||||
|
||||
$site = $dbForProject->getDocument('sites', $siteId);
|
||||
|
||||
Reference in New Issue
Block a user