mirror of https://github.com/BOINC/boinc.git
HTML ops page: properly display queries containing '<' and '>'.
svn path=/trunk/boinc/; revision=10249
This commit is contained in:
parent
70c2352a07
commit
9f19882046
|
@ -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
|
||||
|
||||
|
|
|
@ -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('<', '<', str_replace('>', '>', $main_query));
|
||||
|
||||
echo "<p>Query: <b>$html_text</b><p>\n";
|
||||
|
||||
$start_1_offset = $start_at + 1;
|
||||
echo "
|
||||
|
|
Loading…
Reference in New Issue