rse 99/12/04 03:43:19
Modified: src CHANGES
src/modules/standard mod_rewrite.c
Log:
Fixed a recently introduced off-by-one-character bug in
mod_rewrite's expansion of expression back-references.
Submitted by: Cliff Woolley <[EMAIL PROTECTED]>
Reviewed by: Ralf S. Engelschall
PR: 4766, 5389
Revision Changes Path
1.1469 +4 -0 apache-1.3/src/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apache-1.3/src/CHANGES,v
retrieving revision 1.1468
retrieving revision 1.1469
diff -u -r1.1468 -r1.1469
--- CHANGES 1999/12/01 22:10:39 1.1468
+++ CHANGES 1999/12/04 11:43:12 1.1469
@@ -1,5 +1,9 @@
Changes with Apache 1.3.10
+ *) Fixed a recently introduced off-by-one-character bug in
+ mod_rewrite's expansion of expression back-references.
+ [Cliff Woolley <[EMAIL PROTECTED]>] PR#4766 PR#5389
+
*) Add IndexOptions DescriptionWidth so that the width of the
description field in fancy-indexed directory listings can
be specified.
1.153 +1 -1 apache-1.3/src/modules/standard/mod_rewrite.c
Index: mod_rewrite.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_rewrite.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -r1.152 -r1.153
--- mod_rewrite.c 1999/11/26 19:43:50 1.152
+++ mod_rewrite.c 1999/12/04 11:43:17 1.153
@@ -2513,7 +2513,7 @@
/* now apply the standard regex substitution function */
ap_cpystrn(buf, ap_pregsub(p, buf, bri->source,
- bri->nsub+0, bri->regmatch), nbuf);
+ bri->nsub+1, bri->regmatch), nbuf);
/* restore the original $N and & backrefs */
for (i = 0; buf[i] != '\0' && i < nbuf; i++) {