Commit 511e8b60 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix bug in '%' escaping in substitution pattern compile

parent 118ca0dd
......@@ -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;
}
......
Supports Markdown
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