You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/11/13 19:29:02 UTC

DO NOT REPLY [Bug 14519] New: - QUESY_STRING parts not incorporated by mod_rewrite

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14519>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14519

QUESY_STRING parts not incorporated by mod_rewrite

           Summary: QUESY_STRING parts not incorporated by mod_rewrite
           Product: Apache httpd-1.3
           Version: 1.3.27
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: michael.teitler@cetelem.fr


Hi,

QUESY_STRING parts is not incorporated <- bad test :

  if (r->args != NULL &&
      r->uri == r->unparsed_uri) {

instead of :

  if (r->args != NULL &&
      r->uri != r->unparsed_uri) {


in this code :

  /* make sure the QUERY_STRING and
   * PATH_INFO parts get incorporated
   */
  if (r->path_info != NULL) {
    r->filename = ap_pstrcat(r->pool, r->filename,
                             r->path_info, NULL);
  }
  if (r->args != NULL &&
      r->uri == r->unparsed_uri) {
    /* see proxy_http:proxy_http_canon() */
    r->filename = ap_pstrcat(r->pool, r->filename,
                             "?", r->args, NULL);
  }


Consequence : GET args lost !

Regards,

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org