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.

This commit is contained in:
yusuke.kawai.sg 2024-04-10 14:40:44 +09:00
parent 2eba0b5154
commit 951a08c972

View file

@ -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.'));