From fcea8eec5906baa273bcf56ade45c749de19f937 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Tue, 20 Dec 2011 01:43:35 +0000 Subject: [PATCH] Make character escaping consistent --- source/webui/pages/errors/404.php | 2 +- source/webui/templates/errors/404.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/webui/pages/errors/404.php b/source/webui/pages/errors/404.php index 956189c..779d46a 100644 --- a/source/webui/pages/errors/404.php +++ b/source/webui/pages/errors/404.php @@ -3,7 +3,7 @@ $main = StatusBoard_Main::instance(); $req = $main->request(); -$this->smarty->assign('requested_page', htmlspecialchars($req->request_string())); +$this->smarty->assign('requested_page', $req->request_string()); ?> \ No newline at end of file diff --git a/source/webui/templates/errors/404.tpl b/source/webui/templates/errors/404.tpl index 607707a..956dab8 100644 --- a/source/webui/templates/errors/404.tpl +++ b/source/webui/templates/errors/404.tpl @@ -1,6 +1,6 @@

The requested page could not be found

- The file you requested ({$requested_page}) could not be found. + The file you requested ({$requested_page|escape:html}) could not be found. If you typed in the address manually, check that you have spelled it correctly, or if you followed a link, let us know and we'll look into it.

\ No newline at end of file