Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10872b9
)
avoid uninitialized value warnings
author
Joey Hess
<joey@gnu.kitenet.net>
Mon, 9 Mar 2009 17:52:51 +0000
(13:52 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Mon, 9 Mar 2009 17:52:51 +0000
(13:52 -0400)
IkiWiki/Plugin/404.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/404.pm
b/IkiWiki/Plugin/404.pm
index 5550ea7d19dda10131344385358b65e6ed3bb81e..bae9e15d1a67ea8705626d69dc69cdc486e68306 100644
(file)
--- a/
IkiWiki/Plugin/404.pm
+++ b/
IkiWiki/Plugin/404.pm
@@
-67,7
+67,8
@@
sub cgi_page_from_404 ($$$) {
sub cgi ($) {
my $cgi=shift;
- if ($ENV{REDIRECT_STATUS} eq '404') {
+ if (exists $ENV{REDIRECT_STATUS} &&
+ $ENV{REDIRECT_STATUS} eq '404') {
my $page = cgi_page_from_404($ENV{REDIRECT_URL},
$config{url}, $config{usedirs});
IkiWiki::Plugin::goto::cgi_goto($cgi, $page);