-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Adjust reference to modsecurity::utils::string::VALID_HEX #3243
Conversation
- This function (previously a #define) was previously in the global namespace and was moved into modsecurity::utils::string in commit a6d64bf.
Ahm, thanks - meanwhile I also started to work on this fix 😄 Btw I don't understand the situation, because the PR's check were successful, but later I get reports about failed checks. Seems like now everything is fine. I also added two new tests (a positive and a negative) - do you think that would be useful to check the |
You can see in commit a6d64bf that I adjusted the source files that were using this macro because the macro/function was no longer in the global namespace. When we introduced the use of
ok, I'll do that and push an update to this PR. |
done. I added your repository as a |
Quality Gate passedIssues Measures |
Oh, thanks - I didn't noticed that. I looked up for that and found as macro so that was confused. Never mind, thanks for all again. If the tests will passed I'm going to merge this PR. |
Never mind, may be I forget to update that branch where I get from the notifications. |
what
Fix build after integrating PR #3231 & #3233 because of reference to
modsecurity::utils::string::VALID_HEX
inpm.cc
'sparse_pm_content
.why
These two PRs were independent of each other, but when we added a reference to
VALID_HEX
to simplify the code, we introduced an incompatibility between both PRs because PR #3231 movedVALID_HEX
into the namespacemodsecurity::utils::string
(alongside all other helper functions insrc/utils/string.h
) and adjusted all call sites to this function (previously a macro). However, in that branch the call added toparse_pm_content
that we introduced later in PR #3233 was not present and thus was not adjusted.