Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eduroam
radsecproxy
Commits
05b36061
Commit
05b36061
authored
May 31, 2013
by
Linus Nordberg
Browse files
Honour escaped slashes in regular expressions.
Closes RADSECPROXY-51.
parent
5fd15c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
radsecproxy.c
View file @
05b36061
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment