Commit 539d323f authored by Aaron Wells's avatar Aaron Wells
Browse files

HTML-escape page title in watchlist JSON response (Bug 1472439)

Change-Id: I445c763b09928ce03ae8561605e593bc23bba122
parent 7a7f066d
......@@ -31,7 +31,7 @@ if (!can_view_view($view)) {
json_reply('local', $result);
$title = $view->get('title');
$title = hsc($view->get('title'));
if (get_record('usr_watchlist_view', 'usr', $data->usr, 'view', $viewid)) {
if (!delete_records('usr_watchlist_view', 'usr', $data->usr, 'view', $viewid)) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment