This commit is contained in:
The-EDev 2022-02-08 19:22:09 +03:00
parent 6ad068494f
commit dcd2b0c318
No known key found for this signature in database
GPG Key ID: 51C45DC0C413DCD9

View File

@ -695,7 +695,7 @@ namespace crow
else if ((c == '/') || (c == '\\'))
{
//TODO(EDev): uncomment below once #332 is merged
if (/*CROW_UNLIKELY(*/i == 0/*)*/) //Prevent Unix Absolute Paths (Windows Absolute Paths are prevented with `(c == ':')`)
if (/*CROW_UNLIKELY(*/ i == 0 /*)*/) //Prevent Unix Absolute Paths (Windows Absolute Paths are prevented with `(c == ':')`)
{
data[i] = replacement;
}