fixes issue #15653
Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
include $(TOPDIR)/rules.mk
PKG_NAME:=nginx-util
-PKG_VERSION:=1.5
+PKG_VERSION:=1.6
PKG_RELEASE:=1
PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
std::string ret{};
for (char c : strptr) {
switch (c) {
- case '^': ret += '\\'; [[fallthrough]];
- case '_': [[fallthrough]];
- case '-': ret += c; break;
+ case '^':
+ ret += '\\';
+ ret += c;
+ break;
+ case '_':
+ case '-':
+ ret += c;
+ break;
default:
if ((isalpha(c) != 0) || (isdigit(c) != 0)) {
ret += c;