From 6d42890bd60dc9807d2af75f02df9fb370a85894 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 23 Nov 2003 05:21:23 +0000 Subject: [PATCH] Fix rename page escaping bug --- includes/WatchedItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index ba60d00c66..de5e649d90 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -68,7 +68,7 @@ class WatchedItem { $enewtitle = wfStrencode( $newtitle ); $sql = "SELECT wl_user FROM watchlist - WHERE wl_namespace={$oldnamespace} AND wl_title='{$oldtitle}'"; + WHERE wl_namespace={$oldnamespace} AND wl_title='{$eoldtitle}'"; $res = wfQuery( $sql, DB_READ, $fname ); if( $s = wfFetchObject( $res ) ) { $sql = "REPLACE INTO watchlist (wl_user,wl_namespace,wl_title) -- 2.20.1