From 82165c9025afac058b3b45dbce6c31f0317b6d32 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 15 Jan 2008 20:23:50 +0000 Subject: [PATCH] Whoops, removed one check too many. --- includes/api/ApiRollback.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 6b76be98c9..039ca8b0a9 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -53,6 +53,8 @@ class ApiRollback extends ApiBase { $this->dieUsage('The wiki is in read-only mode', 'readonly'); $titleObj = Title::newFromText($params['title']); + if(!$titleObj) + $this->dieUsage("Bad title ``{$params['title']}''", 'invalidtitle'); $username = User::getCanonicalName($params['user']); if(!$username) -- 2.20.1