8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03: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 962e64c6a2
commit a012d9711a

View File

@ -405,7 +405,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;