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 |
|
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_HEXinpm.cc'sparse_pm_content.why
These two PRs were independent of each other, but when we added a reference to
VALID_HEXto simplify the code, we introduced an incompatibility between both PRs because PR #3231 movedVALID_HEXinto 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_contentthat we introduced later in PR #3233 was not present and thus was not adjusted.