Changeset 1841
- Timestamp:
- 05/08/2007 03:47:18 PM (16 months ago)
- Files:
-
- 1 modified
-
trunk/src/mod_proxy_core.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mod_proxy_core.c
r1838 r1841 1339 1339 int ret; 1340 1340 1341 if ((ret = pcre_replace(rw->regex, rw->replace, con-> request.uri, p->replace_buf)) < 0) {1341 if ((ret = pcre_replace(rw->regex, rw->replace, con->uri.path, p->replace_buf)) < 0) { 1342 1342 switch (ret) { 1343 1343 case PCRE_ERROR_NOMATCH: … … 1352 1352 buffer_copy_string_buffer(con->request.pathinfo, p->replace_buf); 1353 1353 } 1354 } else if (buffer_is_equal_string(rw->header, CONST_STR_LEN("_scriptname"))) { 1355 int ret; 1356 1357 if ((ret = pcre_replace(rw->regex, rw->replace, con->uri.path, p->replace_buf)) < 0) { 1358 switch (ret) { 1359 case PCRE_ERROR_NOMATCH: 1360 /* hmm, ok. no problem */ 1361 break; 1362 default: 1363 TRACE("oops, pcre_replace failed with: %d", ret); 1364 break; 1365 } 1366 } else { 1367 /* we matched, cool. */ 1368 buffer_copy_string_buffer(con->uri.path, p->replace_buf); 1369 } 1370 1354 1371 } 1355 1372 }

