Commit 9fec3c8e authored by nextime's avatar nextime

Fix mysql_real_escape_string

parent eb142980
...@@ -30,7 +30,7 @@ function getSection($path=false) ...@@ -30,7 +30,7 @@ function getSection($path=false)
$GUISECTION="index"; $GUISECTION="index";
if(count($sectar)>1 and $sectar[1]!="") if(count($sectar)>1 and $sectar[1]!="")
$GUISECTION=$sectar[1]; $GUISECTION=$sectar[1];
return mysql_real_escape_string(htmlentities($GUISECTION)); return htmlentities($GUISECTION);
} }
function getSubsection($path=false) function getSubsection($path=false)
...@@ -42,7 +42,7 @@ function getSubsection($path=false) ...@@ -42,7 +42,7 @@ function getSubsection($path=false)
$GUISUBSECTION=""; $GUISUBSECTION="";
if(count($sectar)>2) if(count($sectar)>2)
$GUISUBSECTION=$sectar[2]; $GUISUBSECTION=$sectar[2];
return mysql_real_escape_string(htmlentities($GUISUBSECTION)); return htmlentities($GUISUBSECTION);
} }
function getSubsectionOpt($path=false) function getSubsectionOpt($path=false)
...@@ -54,7 +54,7 @@ function getSubsectionOpt($path=false) ...@@ -54,7 +54,7 @@ function getSubsectionOpt($path=false)
$GUISUBSECTIONOPT=""; $GUISUBSECTIONOPT="";
if(count($sectar)>3) if(count($sectar)>3)
$GUISUBSECTIONOPT=$sectar[3]; $GUISUBSECTIONOPT=$sectar[3];
return mysql_real_escape_string(htmlentities($GUISUBSECTIONOPT)); return htmlentities($GUISUBSECTIONOPT);
} }
$BASEGUIPATH=getBaseGuiPath(); $BASEGUIPATH=getBaseGuiPath();
$FSPATH=getFSPath(); $FSPATH=getFSPath();
......
...@@ -15,4 +15,4 @@ if [ "$2" != "en" ] && [ "$2" != "it" ] ; then ...@@ -15,4 +15,4 @@ if [ "$2" != "en" ] && [ "$2" != "it" ] ; then
phelp phelp
fi fi
python `dirname $0`/../domotika/clouds/google/tts.py $@ python `dirname $0`/../domotika/clouds/google/tts.py $1 $2 "${3}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment