mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 09:31:53 +03:00
test: Increases the cache size of the urldecode transformation
This commit is contained in:
@@ -38,7 +38,7 @@ class UrlDecodeInstantCache : public std::unordered_map<std::string, std::string
|
|||||||
|
|
||||||
void cache(const std::string& value, const std::string& out) {
|
void cache(const std::string& value, const std::string& out) {
|
||||||
emplace(value, out);
|
emplace(value, out);
|
||||||
if (size() > 100) {
|
if (size() > 500) {
|
||||||
erase(begin());
|
erase(begin());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user