diff --git a/Libraries/LibWeb/ResourceLoader.cpp b/Libraries/LibWeb/ResourceLoader.cpp index cddb11ca2a..ed013daeae 100644 --- a/Libraries/LibWeb/ResourceLoader.cpp +++ b/Libraries/LibWeb/ResourceLoader.cpp @@ -68,8 +68,8 @@ void ResourceLoader::load_sync(const URL& url, Function void ResourceLoader::load(const URL& url, Function success_callback, Function error_callback) { if (is_port_blocked(url.port())) { - dbg() << "ResourceLoader::load: Error: blocked port " << url.port() << " for URL: " << url; - return; + dbg() << "ResourceLoader::load: Error: blocked port " << url.port() << " for URL: " << url; + return; } if (url.protocol() == "file") { @@ -117,7 +117,8 @@ void ResourceLoader::load(const URL& url, Function succ error_callback(String::format("Protocol not implemented: %s", url.protocol().characters())); } -bool ResourceLoader::is_port_blocked(int port) { +bool ResourceLoader::is_port_blocked(int port) +{ int ports[] { 1, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 25, 37, 42, 43, 53, 77, 79, 87, 95, 101, 102, 103, 104, 109, 110, 111, 113, 115, 117, 119, 123, 135, 139, 143, 179, 389, 465, 512, 513, 514,