• R/O
  • HTTP
  • SSH
  • HTTPS

pukiwiki: Commit


Commit MetaInfo

Revisionefca0da6ba36e9b664c1085013201b0e03267b66 (tree)
Time2022-08-21 18:07:53
Authorhaifun <haifun@user...>
Commiterhaifun

Log Message

BugTrack/2575 Fix a bug that cannot open page named "0"

Change Summary

Incremental Difference

--- a/lib/init.php
+++ b/lib/init.php
@@ -425,7 +425,7 @@ if (! isset($vars['cmd']) && ! isset($vars['plugin'])) {
425425 if ($arg === FALSE) {
426426 // page is FALSE if page name is not valid
427427 // Keep $arg is FALSE
428- } else if (!$arg) {
428+ } else if (is_null($arg) || $arg === '') {
429429 // if $arg is null or '' ($arg is NOT FALSE)
430430 $arg = $defaultpage;
431431 }
Show on old repository browser