diff --git a/app/controllers/api/proxy.php b/app/controllers/api/proxy.php index 0d1428cf23..9bfb546b95 100644 --- a/app/controllers/api/proxy.php +++ b/app/controllers/api/proxy.php @@ -89,7 +89,7 @@ App::post('/v1/proxy/rules') try { $domain = new Domain($domain); - } catch (Exception) { + } catch (\Exception) { throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Invalid domain. Domain may not start with http:// or https://.'); }