Révision | c2bb493ea28ed514f3f038f810264e5ec4da4e25 (tree) |
---|---|
l'heure | 2014-11-30 20:27:59 |
Auteur | henoheno <henoheno> |
Commiter | umorigu |
BugTrack2/320: Failure with page "0" (reverted before ../init.php r1.81)
@@ -2,7 +2,7 @@ | ||
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | 3 | // $Id: init.php,v 1.57 2011/01/25 15:01:01 henoheno Exp $ |
4 | 4 | // Copyright (C) |
5 | -// 2002-2006 PukiWiki Developers Team | |
5 | +// 2002-2007, 2009 PukiWiki Developers Team | |
6 | 6 | // 2001-2002 Originally written by yu-ji |
7 | 7 | // License: GPL v2 or (at your option) any later version |
8 | 8 | // |
@@ -268,7 +268,7 @@ if (isset($_GET['encode_hint']) && $_GET['encode_hint'] != '') | ||
268 | 268 | // cmdもpluginも指定されていない場合は、QUERY_STRINGを |
269 | 269 | // ページ名かInterWikiNameであるとみなす |
270 | 270 | $arg = ''; |
271 | -if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) { | |
271 | +if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != '') { | |
272 | 272 | $arg = & $_SERVER['QUERY_STRING']; |
273 | 273 | } else if (isset($_SERVER['argv']) && ! empty($_SERVER['argv'])) { |
274 | 274 | $arg = & $_SERVER['argv'][0]; |