httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24734] New: - Unable to use empty vars assigned in .htaccess
Date Sun, 16 Nov 2003 00:18:37 GMT
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=24734>.
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=24734

Unable to use empty vars assigned in .htaccess

           Summary: Unable to use empty vars assigned in .htaccess
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: mod_env
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: mj@zermatt.net


It's no longer possible to set empty variables in the .htaccess files.
mod_env sets them, but #printenv (mod_include) crashes and #echo (mod_include) treats them
as 
not defined - prints "(none)"

possible solution:

diff -rc org/modules/metadata/mod_env.c patched/modules/metadata/mod_env.c
*** org/modules/metadata/mod_env.c      Sun Nov 16 00:16:45 2003
--- patched/modules/metadata/mod_env.c  Sun Nov 16 00:17:30 2003
***************
*** 158,164 ****
      /* name is mandatory, value is optional.  no value means
       * set the variable to an empty string
       */
!     apr_table_setn(sconf->vars, name, value);
  
      return NULL;
  }
--- 158,168 ----
      /* name is mandatory, value is optional.  no value means
       * set the variable to an empty string
       */
!     if (value != NULL) {
!         apr_table_setn(sconf->vars, name, value);
!     } else {
!         apr_table_setn(sconf->vars, name, "");
!     }
  
      return NULL;
  }

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


Mime
View raw message