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: [email protected] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
