summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_target_error.c
diff options
context:
space:
mode:
authortls <tls@NetBSD.org>2009-02-19 22:33:39 +0000
committertls <tls@NetBSD.org>2009-02-19 22:33:39 +0000
commit7184d23274d3c615121a34f168cf65f51157e9c5 (patch)
tree077be7ca017f126cbcb0ba954f7fa5db0d692e45 /sys/dev/dm/dm_target_error.c
parent0931c75c7a8e9a5cf53dca87be45ead79825bcc8 (diff)
More CGI handling fixes from Sergey Katsev at Coyote Point.
1) Fix an issue where because of the reordering of transform_request and process_cgi, the cgi-script name was being cut off by one character (transform_request for some reason cuts off the leading '/' for the file name as part of its processing). As an 'easy' fix, simply re-add the '/' to the front of the filename, which means that we don't have to mess with the logic that sometimes adds +1 and sometimes doesn't. 2) Work around ridiculous bug in PHP reported by lukem in 2004, but stubbornly never fixed by the PHP maintainers: Change the SCRIPT_NAME and SCRIPT_FILENAME variables to contain the file name only, not the query if one exists. Having the query in SCRIPT_FILENAME causes php-cgi to not work, as per the bug information here: http://bugs.php.net/bug.php?id=28227 3) Fix a memory leak because URL wasn't being freed.
Diffstat (limited to 'sys/dev/dm/dm_target_error.c')
0 files changed, 0 insertions, 0 deletions