martin 98/09/04 13:45:42
Modified: src/modules/standard mod_speling.c
Log:
Fix "Spelling Corrected" link: it forgot to add the query argument,
though the visible text showed it.
Submitted by: Ken Coar
Reviewed by: Ken Coar
Revision Changes Path
1.25 +3 -1 apache-1.3/src/modules/standard/mod_speling.c
Index: mod_speling.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_speling.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- mod_speling.c 1998/08/06 23:31:59 1.24
+++ mod_speling.c 1998/09/04 20:45:41 1.25
@@ -455,8 +455,10 @@
/* The format isn't very neat... */
t = ap_pstrcat(p, t, "<li><a href=\"", url,
- variant[i].name, r->path_info, "\">",
variant[i].name, r->path_info,
+ r->parsed_uri.query ? "?" : "",
+ r->parsed_uri.query ? r->parsed_uri.query : "",
+ "\">", variant[i].name, r->path_info,
r->parsed_uri.query ? "?" : "",
r->parsed_uri.query ? r->parsed_uri.query : "",
"</a> (",