diff options
author | Yorhel <git@yorhel.nl> | 2008-10-23 11:42:41 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-10-23 11:42:41 +0200 |
commit | 494fafb1bc3ad9b2616f06a4c289983044bde734 (patch) | |
tree | dc872d13028d01ac6c4ffb80091284bd7304f69c /lib | |
parent | 47589fd17c115c6f4453b0c37b6748f184868ec0 (diff) |
SERVER_SOFTWARE doesn't always have to be defined
Diffstat (limited to 'lib')
-rw-r--r-- | lib/YAWF/Request.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/YAWF/Request.pm b/lib/YAWF/Request.pm index 59d28a6..a1ae4e5 100644 --- a/lib/YAWF/Request.pm +++ b/lib/YAWF/Request.pm @@ -18,7 +18,7 @@ sub reqInit { my $self = shift; # lighttpd doesn't always split the query string from REQUEST_URI - if($ENV{SERVER_SOFTWARE} =~ /lighttpd/) { + if($ENV{SERVER_SOFTWARE}||'' =~ /lighttpd/) { ($ENV{REQUEST_URI}, $ENV{QUERY_STRING}) = split /\?/, $ENV{REQUEST_URI}, 2 if ($ENV{REQUEST_URI}||'') =~ /\?/; } |