From 6302826d53cc12f731c41915a47c6c19f65743cf Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Wed, 5 Sep 2018 22:07:08 +0200 Subject: fix some printing issues --- src/admin/clar.php | 4 ++-- src/admin/claredit.php | 5 ++--- src/admin/report/clar.php | 4 ++-- src/globals.php | 2 ++ src/judge/clar.php | 2 +- src/judge/claredit.php | 4 ++-- src/judge/history.php | 4 ++-- src/team/clar.php | 4 ++-- 8 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/admin/clar.php b/src/admin/clar.php index 66a7b0d..9d02d11 100644 --- a/src/admin/clar.php +++ b/src/admin/clar.php @@ -92,13 +92,13 @@ for ($i=0; $i"; // echo "
" . $clar[$i]["question"] . "
"; // echo $clar[$i]["question"]; - echo " \n"; + echo " \n"; echo "\n"; if (trim($clar[$i]["answer"]) == "") $clar[$i]["answer"] = "Not answered yet"; echo " "; // echo "
" . $clar[$i]["answer"] . "
"; // echo $clar[$i]["answer"]; - echo " \n"; + echo " \n"; echo "\n"; echo " \n"; diff --git a/src/admin/claredit.php b/src/admin/claredit.php index 5eb812f..cf9785c 100644 --- a/src/admin/claredit.php +++ b/src/admin/claredit.php @@ -125,14 +125,13 @@ if (($a = DBChiefGetClarToAnswer($clarnumber, $clarsitenumber, Clarification: - + Answer: - + diff --git a/src/admin/report/clar.php b/src/admin/report/clar.php index 61816d9..27616d5 100644 --- a/src/admin/report/clar.php +++ b/src/admin/report/clar.php @@ -63,13 +63,13 @@ for ($i=0; $i"; // echo "
" . $clar[$i]["question"] . "
"; // echo $clar[$i]["question"]; - echo " \n"; + echo " \n"; echo "\n"; if (trim($clar[$i]["answer"]) == "") $clar[$i]["answer"] = "Not answered yet"; echo " "; // echo "
" . $clar[$i]["answer"] . "
"; // echo $clar[$i]["answer"]; - echo " \n"; + echo " \n"; echo "\n"; echo " \n"; diff --git a/src/globals.php b/src/globals.php index 80f79df..ae11a13 100755 --- a/src/globals.php +++ b/src/globals.php @@ -227,6 +227,8 @@ function sanitizeFilename($text) function unsanitizeText($text) { $text = str_replace("<", "<", $text); $text = str_replace(">", ">", $text); + $text = str_replace("'", "'", $text); + $text = str_replace("`", "`", $text); $text = str_replace("&", "&", $text); return $text; } diff --git a/src/judge/clar.php b/src/judge/clar.php index ee120ab..a195af8 100644 --- a/src/judge/clar.php +++ b/src/judge/clar.php @@ -71,7 +71,7 @@ for ($i=0; $i"; // echo "
" . $clar[$i]["question"] . "
"; // echo $clar[$i]["question"]; - echo " \n"; + echo " \n"; echo "\n"; echo " \n"; diff --git a/src/judge/claredit.php b/src/judge/claredit.php index c459747..a5c3265 100644 --- a/src/judge/claredit.php +++ b/src/judge/claredit.php @@ -111,13 +111,13 @@ if (($a = DBGetClarToAnswer($clarnumber, $clarsitenumber, Clarification: - + Answer: - + diff --git a/src/judge/history.php b/src/judge/history.php index b612f9a..a6bcc79 100644 --- a/src/judge/history.php +++ b/src/judge/history.php @@ -54,13 +54,13 @@ for ($i=0; $i"; // echo "
" . $clar[$i]["question"] . "
"; // echo $clar[$i]["question"]; - echo " \n"; + echo " \n"; echo "\n"; if (trim($clar[$i]["answer"]) == "") $clar[$i]["answer"] = "Not answered yet"; echo " "; // echo "
" . $clar[$i]["answer"] . "
"; // echo $clar[$i]["answer"]; - echo " \n"; + echo " \n"; echo "\n"; echo " \n"; diff --git a/src/team/clar.php b/src/team/clar.php index a1e3972..c763c2c 100644 --- a/src/team/clar.php +++ b/src/team/clar.php @@ -56,13 +56,13 @@ for ($i=0; $i"; // echo "
" . $clar[$i]["question"] . "
"; - echo " \n"; + echo " \n"; echo "\n"; if (trim($clar[$i]["answer"]) == "") $clar[$i]["answer"] = "Not answered yet"; echo " "; // echo "
" . $clar[$i]["answer"] . "
"; - echo " \n"; + echo " \n"; echo "\n"; echo " \n"; } -- cgit v1.2.3