From: umorigu Date: Thu, 16 Feb 2017 17:04:00 +0000 (+0900) Subject: BugTrack/2418 Delete blank page even if it has only small changes X-Git-Tag: r1_5_4~226 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5acadb09ede3a4f587a6fd045636eb99a6b43386;p=pukiwiki%2Fpukiwiki.git BugTrack/2418 Delete blank page even if it has only small changes --- diff --git a/lib/file.php b/lib/file.php index b3b0389..80d6594 100644 --- a/lib/file.php +++ b/lib/file.php @@ -1,8 +1,8 @@ $_title_edit, 'body'=>edit_form($page, $postdata)); } @@ -62,7 +62,7 @@ function plugin_edit_preview() } $body = $_msg_preview . '
' . "\n"; - if ($postdata == '') + if ($postdata === '') $body .= '' . $_msg_preview_delete . ''; $body .= '
' . "\n"; @@ -219,7 +219,7 @@ function plugin_edit_write() } // NULL POSTING, OR removing existing page - if ($postdata == '') { + if ($postdata === '') { page_write($page, $postdata); $retvars['msg' ] = $_title_deleted; $retvars['body'] = str_replace('$1', htmlsc($page), $_title_deleted);