X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/6fcc37bb969a9298ef5ad850d8b8361fe6ca3a5a..140051e24ff5a74421e8b437cdc12ca8570995cd:/common.inc.plp diff --git a/common.inc.plp b/common.inc.plp index dd41751..f7ca700 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -47,10 +47,10 @@ BEGIN { our $Dev = $ENV{HTTP_HOST} =~ /\bdev\./; } -our $Request = decode_utf8($ENV{PATH_INFO} =~ s{^/}{}r); +our $Request //= decode_utf8($ENV{PATH_INFO} =~ s{^/}{}r); our $style; -our $showkeys = !exists $get{keys} ? undef : +our $showkeys //= !exists $get{keys} ? undef : ($get{keys} ne '0' && ($get{keys} || 'always')); $header{content_type} = 'text/html; charset=utf-8';