Commit 05b36061 authored by Linus Nordberg's avatar Linus Nordberg

Honour escaped slashes in regular expressions.

Closes RADSECPROXY-51.
parent 5fd15c12
......@@ -2445,7 +2445,9 @@ struct modattr *extractmodattr(char *nameval) {
if (s[strlen(s) - 1] == '/')
s[strlen(s) - 1] = '\0';
t = strchr(s, '/');
for (t = strchr(s, '/'); t; t = strchr(t+1, '/'))
if (t == s || t[-1] != '\\')
break;
if (!t)
return NULL;
*t = '\0';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment