From 9f1988204648f4d043704d2f31cac422bc1afef1 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sun, 4 Jun 2006 12:48:35 +0000 Subject: [PATCH] HTML ops page: properly display queries containing '<' and '>'. svn path=/trunk/boinc/; revision=10249 --- checkin_notes | 7 +++++++ html/ops/db_action.php | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 8fdd68bdcc..a3fe448916 100755 --- a/checkin_notes +++ b/checkin_notes @@ -5437,3 +5437,10 @@ Bruce 3 June 2006 handle_request.C transitioner.C +Bruce 4 June 2006 + - HTML ops page: properly display queries containing '<' and '>'. + + html/ + ops/ + db_action.php + diff --git a/html/ops/db_action.php b/html/ops/db_action.php index 1ed1b6d6c6..657be27fc6 100644 --- a/html/ops/db_action.php +++ b/html/ops/db_action.php @@ -39,7 +39,12 @@ $last = $start_at + $entries_to_show; $main_query = $q->get_select_query($entries_to_show, $start_at); -echo "

Query: $main_query

\n"; +// For display, convert query string characters < and > into 'html form' so +// that they will be displayed. +// +$html_text=str_replace('<', '<', str_replace('>', '>', $main_query)); + +echo "

Query: $html_text

\n"; $start_1_offset = $start_at + 1; echo "