diff options
author | Yorhel <git@yorhel.nl> | 2008-10-22 15:59:26 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-10-22 15:59:26 +0200 |
commit | a6d21029f10130053d6e196611df5419d9dc9f46 (patch) | |
tree | e42de85a8fd41d9a1678dce7ed9d8e88b2fcd3ec | |
parent | 2cadd675813a9a3bd44eb7bc61a5ef4de724fb99 (diff) |
Added REQUEST_URI and QUERY_STRING splitter for Lighttpd
-rw-r--r-- | lib/YAWF/Request.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/YAWF/Request.pm b/lib/YAWF/Request.pm index 4d389a0..57bcccd 100644 --- a/lib/YAWF/Request.pm +++ b/lib/YAWF/Request.pm @@ -17,6 +17,12 @@ our @EXPORT = qw| sub reqInit { my $self = shift; + # lighttpd doesn't always split the query string from REQUEST_URI + if($ENV{SERVER_SOFTWARE} =~ /lighttpd/) { + ($ENV{REQUEST_URI}, $ENV{QUERY_STRING}) = split /\?/, $ENV{REQUEST_URI}, 2 + if ($ENV{REQUEST_URI}||'') =~ /\?/; + } + # reset and re-initialise some vars to make CGI::Minimal work in FastCGI CGI::Minimal::reset_globals; CGI::Minimal::allow_hybrid_post_get(1); |