diff --git a/core/class/uploader.php b/core/class/uploader.php index 447d0ff..f7cd653 100644 --- a/core/class/uploader.php +++ b/core/class/uploader.php @@ -149,8 +149,8 @@ public function __construct() { } // COOKIES INIT - $ip = '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'; - $ip = '/^' . implode('\.', array($ip, $ip, $ip, $ip)) . '$/'; + $ip = '(25[0-5]|2[0-4][0-9]|[1]?[0-9][0-9]?)'; + $ip = '/^' . implode('\.', array($ip, $ip, $ip, $ip)) . '\:?(\d+)?$/'; if (preg_match($ip, $_SERVER['HTTP_HOST']) || preg_match('/^[^\.]+$/', $_SERVER['HTTP_HOST']) )