From c2d5de5703d6c99a36b403a570816cd71dfead93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 19 Aug 2001 14:14:17 +0000 Subject: [PATCH] Beautify a bit the way the query is displayed --- lib.inc.php3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.inc.php3 b/lib.inc.php3 index 06a0b10a1..8acb48740 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -521,7 +521,7 @@ window.parent.frames['nav'].location.replace(''); // xhtml1.0 statement before php4.0.5 ("
" and not "
") $new_line = '
' . "\n" . ' '; $query_base = htmlspecialchars($GLOBALS['sql_query']); - $query_base = ereg_replace("(\015\012)|(\015)|(\012)", $new_line, $query_base); + $query_base = ereg_replace("((\015\012)|(\015)|(\012))+", $new_line, $query_base); if (!isset($GLOBALS['show_query']) || $GLOBALS['show_query'] != 'y') { if (isset($GLOBALS['goto']) && $GLOBALS['goto'] == 'tbl_properties.php3') { $edit_link = '' . $GLOBALS['strEdit'] . '';