From e65a7703ffe85766462984c896d898a4d7fdcb9f Mon Sep 17 00:00:00 2001 From: Jeongkyu Shin Date: Mon, 10 Nov 2014 16:21:09 +0900 Subject: [PATCH] refs #1703 : modified - trackback delete routine - --- framework/id/textcube/config.default.php | 2 +- interface/owner/communication/trackback/delete/index.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/id/textcube/config.default.php b/framework/id/textcube/config.default.php index 75422aab0..3a15957ba 100644 --- a/framework/id/textcube/config.default.php +++ b/framework/id/textcube/config.default.php @@ -52,7 +52,7 @@ $service['reader'] = true; $service['flashclipboardpoter'] = true; $service['allowBlogVisibilitySetting'] = true; -$service['disableEolinSuggestion'] = false; +$service['disableEolinSuggestion'] = true; $service['interface'] = 'detail'; // 'simple' or 'detail'. Default is 'detail' $service['pagecache'] = true; $service['codecache'] = false; diff --git a/interface/owner/communication/trackback/delete/index.php b/interface/owner/communication/trackback/delete/index.php index 0cbef1968..fccc4c7ac 100644 --- a/interface/owner/communication/trackback/delete/index.php +++ b/interface/owner/communication/trackback/delete/index.php @@ -4,7 +4,8 @@ /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) $IV = array( 'POST' => array( - 'targets' => array('list', 'default' => '') + 'targets' => array('list', 'default' => '', 'mandatory' => false), + 'targetIPs' => array('string', 'default' => '', 'mandatory' => false) ) ); require ROOT . '/library/preprocessor.php'; @@ -13,9 +14,9 @@ requireStrictRoute(); if(isset($suri['id'])) { - + $isAjaxRequest = checkAjaxRequest(); - + if (trashTrackback($blogid, $suri['id']) !== false) $isAjaxRequest ? Respond::ResultPage(0) : header("Location: ".$_SERVER['HTTP_REFERER']); else