From 951a08c9727cb031c6da1cd50e6bac8451cb0b1c Mon Sep 17 00:00:00 2001 From: "yusuke.kawai.sg" Date: Wed, 10 Apr 2024 14:40:44 +0900 Subject: [PATCH] Removed check to reject server URL path added in version 4.8.4. The server URL path is required by the Oracle Database service name. --- adminer/include/auth.inc.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php index 372819dd..fee3dfee 100644 --- a/adminer/include/auth.inc.php +++ b/adminer/include/auth.inc.php @@ -35,12 +35,6 @@ function validate_server_input() { auth_error(lang('Invalid server or credentials.')); } - // Allow only host without a path. Note that "localhost" is parsed as path. - $host = (isset($parts['host']) ? $parts['host'] : '') . (isset($parts['path']) ? $parts['path'] : ''); - if (strpos(rtrim($host, '/'), '/') !== false) { - auth_error(lang('Invalid server or credentials.')); - } - // Check privileged ports. if (isset($parts['port']) && ($parts['port'] < 1024 || $parts['port'] > 65535)) { auth_error(lang('Connecting to privileged ports is not allowed.'));