Skip to content
Snippets Groups Projects
Commit 511e8b60 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix bug in '%' escaping in substitution pattern compile

parent 118ca0dd
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,9 @@ rewrite_subst_compile(
*/
if ( p[ 0 ] != REWRITE_SUBMATCH_ESCAPE ) {
continue;
} else if ( p[ 1 ] == REWRITE_SUBMATCH_ESCAPE ) {
}
if ( p[ 1 ] == REWRITE_SUBMATCH_ESCAPE ) {
memmove(p, p + 1, strlen( p ) );
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment