ITS#8213 fix deleting rewrite rules

From ITS#5940. Add path has the same code.
This commit is contained in:
Ryan Tandy 2015-08-07 14:03:45 -07:00
parent 523f989d8f
commit 7380354270

View File

@ -2180,6 +2180,9 @@ rwm_cf_gen( ConfigArgs *c )
ca.argc = 0;
config_fp_parse_line( &ca );
argv0 = ca.argv[ 0 ];
ca.argv[ 0 ] += STRLENOF( "rwm-" );
if ( strcasecmp( ca.argv[ 0 ], "suffixmassage" ) == 0 ) {
rc = rwm_suffixmassage_config( &db, c->fname, c->lineno,
ca.argc, ca.argv );
@ -2189,6 +2192,8 @@ rwm_cf_gen( ConfigArgs *c )
ca.argc, ca.argv );
}
ca.argv[ 0 ] = argv0;
ch_free( ca.tline );
ch_free( ca.argv );