mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 01:51:52 +03:00
Removed unused overload of dash_if_empty that sonarcloud flags as potential buffer overflow
This commit is contained in:
@@ -75,15 +75,6 @@ inline std::string dash_if_empty(const std::string *str) {
|
||||
}
|
||||
|
||||
|
||||
inline std::string dash_if_empty(const char *str) {
|
||||
if (str == NULL || std::strlen(str) == 0) {
|
||||
return "-";
|
||||
}
|
||||
|
||||
return std::string(str);
|
||||
}
|
||||
|
||||
|
||||
inline std::string limitTo(int amount, const std::string &str) {
|
||||
std::string ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user