HTML ops page: properly display queries containing '<' and '>'.

svn path=/trunk/boinc/; revision=10249
This commit is contained in:
Bruce Allen 2006-06-04 12:48:35 +00:00
parent 70c2352a07
commit 9f19882046
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -39,7 +39,12 @@ $last = $start_at + $entries_to_show;
$main_query = $q->get_select_query($entries_to_show, $start_at);
echo "<p>Query: <b>$main_query</b><p>\n";
// For display, convert query string characters < and > into 'html form' so
// that they will be displayed.
//
$html_text=str_replace('<', '&lt;', str_replace('>', '&gt;', $main_query));
echo "<p>Query: <b>$html_text</b><p>\n";
$start_1_offset = $start_at + 1;
echo "