OSDN Git Service

BugTrack2/320: Failure with page "0" (reverted before ../init.php r1.81) r1_5_end-eucjp
authorhenoheno <henoheno>
Sat, 18 Apr 2009 00:56:33 +0000 (09:56 +0900)
committerumorigu <umorigu@gmail.com>
Sun, 30 Nov 2014 11:27:59 +0000 (20:27 +0900)
lib/init.php

index 62c2e88..1856be3 100644 (file)
@@ -2,7 +2,7 @@
 // PukiWiki - Yet another WikiWikiWeb clone.
 // $Id: init.php,v 1.57 2011/01/25 15:01:01 henoheno Exp $
 // Copyright (C)
-//   2002-2006 PukiWiki Developers Team
+//   2002-2007, 2009 PukiWiki Developers Team
 //   2001-2002 Originally written by yu-ji
 // License: GPL v2 or (at your option) any later version
 //
@@ -268,7 +268,7 @@ if (isset($_GET['encode_hint']) && $_GET['encode_hint'] != '')
 // cmd¤âplugin¤â»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢QUERY_STRING¤ò
 // ¥Ú¡¼¥¸Ì¾¤«InterWikiName¤Ç¤¢¤ë¤È¤ß¤Ê¤¹
 $arg = '';
-if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) {
+if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != '') {
        $arg = & $_SERVER['QUERY_STRING'];
 } else if (isset($_SERVER['argv']) && ! empty($_SERVER['argv'])) {
        $arg = & $_SERVER['argv'][0];