mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
chore: removing loggin
This commit is contained in:
parent
172ba84ec8
commit
431a26e151
2 changed files with 0 additions and 9 deletions
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
namespace Appwrite\Network;
|
||||
|
||||
use Utopia\CLI\Console;
|
||||
|
||||
class Platform
|
||||
{
|
||||
public const TYPE_UNKNOWN = 'unknown';
|
||||
|
|
@ -102,7 +100,6 @@ class Platform
|
|||
public static function getSchemes(array $platforms): array
|
||||
{
|
||||
$schemes = [];
|
||||
Console::log("Platforms: " . json_encode($platforms, JSON_PRETTY_PRINT));
|
||||
foreach ($platforms as $platform) {
|
||||
$type = strtolower($platform['type'] ?? self::TYPE_UNKNOWN);
|
||||
$scheme = strtolower($platform['key'] ?? '');
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
namespace Appwrite\Network\Validator;
|
||||
|
||||
use Appwrite\Network\Platform;
|
||||
use Utopia\CLI\Console;
|
||||
use Utopia\Validator;
|
||||
use Utopia\Validator\Hostname;
|
||||
|
||||
|
|
@ -43,11 +42,6 @@ class Origin extends Validator
|
|||
$this->scheme = $this->parseScheme($origin);
|
||||
$this->host = strtolower(parse_url($origin, PHP_URL_HOST) ?? '');
|
||||
|
||||
Console::log("Scheme: " . $this->scheme);
|
||||
Console::log("Host: " . $this->host);
|
||||
Console::log("Hostnames: " . json_encode($this->hostnames, JSON_PRETTY_PRINT));
|
||||
Console::log("Schemes: " . json_encode($this->schemes, JSON_PRETTY_PRINT));
|
||||
|
||||
$validator = new Hostname($this->hostnames);
|
||||
if (in_array($this->scheme, ['http', 'https']) && $validator->isValid($this->host)) { // Valid HTTP/HTTPS origin
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue