1
0

Fixed mysql_real_escape_char errors

This commit is contained in:
Mike Schwörer 2014-08-04 16:37:13 +02:00
parent 57b12e9916
commit f8df6da103
3 changed files with 5 additions and 4 deletions

BIN
www/images/log/ms_de_v4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -75,7 +75,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all
} }
else else
{ {
$this->actionListEntries(intval(mysql_real_escape_string($_GET["gameid"]))); $this->actionListEntries(intval(htmlspecialchars($_GET["gameid"])));
return; return;
} }
} }
@ -91,7 +91,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all
} }
else else
{ {
$start = intval(mysql_real_escape_string($_GET["start"])) - 1; $start = intval(htmlspecialchars($_GET["start"])) - 1;
if ($start < 0) if ($start < 0)
{ {
$start = 0; $start = 0;
@ -100,7 +100,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all
if (isset($_GET["highlight"])) if (isset($_GET["highlight"]))
{ {
$highlight= intval(mysql_real_escape_string($_GET["highlight"])); $highlight= intval(htmlspecialchars($_GET["highlight"]));
} }
else else
$highlight = 0; $highlight = 0;

View File

@ -9,4 +9,5 @@ require_once($yiic);
// TODO-MS SharkSim (OLD DATE !) -> MS.de // TODO-MS SharkSim (OLD DATE !) -> MS.de
// TODO-MS BefunGen -> MS.de // TODO-MS BefunGen -> MS.de
// TODO-MS jClipCorn -> MS.de // TODO-MS jClipCorn -> MS.de
// TODO-MS jQCCounter (OLD DATE !) -> MS.de // TODO-MS jQCCounter (OLD DATE !) -> MS.de
// TODO-MS ExtendedGitGraph -> MS.de