8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 23:23:02 +01:00

Implement #8066 : Make protocol schemes case-insensitive.

This commit is contained in:
Vlad Khorsun 2024-04-28 13:54:27 +03:00
parent 08c92efb5d
commit 10b2f767be

View File

@ -364,7 +364,11 @@ bool ISC_analyze_protocol(const char* protocol, tstring& expanded_name, tstring&
node_name.erase();
const PathName prefix = PathName(protocol) + "://";
if (expanded_name.find(prefix) != 0)
if (prefix.length() > expanded_name.length())
return false;
if (IgnoreCaseComparator::compare(prefix.c_str(), expanded_name.c_str(), prefix.length()) != 0)
return false;
PathName savedName = expanded_name;