Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed issue where absolute unix paths were not sanitized #334

Merged
merged 3 commits into from
Feb 8, 2022

Conversation

The-EDev
Copy link
Member

@The-EDev The-EDev commented Feb 8, 2022

No description provided.

@crow-clang-format
Copy link

--- include/crow/utility.h	(before formatting)
+++ include/crow/utility.h	(after formatting)
@@ -695,7 +695,7 @@
                 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;
                     }

@The-EDev The-EDev merged commit a63b080 into master Feb 8, 2022
@The-EDev The-EDev deleted the sanitize_absolute_path branch February 8, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant