summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/tftputils.php
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2018-02-27 13:13:12 +0000
committeririna <irinagomez@us.es>2018-02-27 13:13:12 +0000
commit55fcaa615c6b43eacdcf91b503cdc4b2d14d32b9 (patch)
tree772e688823287a756a9c0a300670e90ae7bc6a4f /admin/WebConsole/includes/tftputils.php
parent9f1274ec297d6ea74b55e2207f19348cd35235ec (diff)
#804 uso de Mysqli por compatibilidad de php7
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5620 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/includes/tftputils.php')
-rw-r--r--admin/WebConsole/includes/tftputils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/includes/tftputils.php b/admin/WebConsole/includes/tftputils.php
index 55f7a871..e7af641f 100644
--- a/admin/WebConsole/includes/tftputils.php
+++ b/admin/WebConsole/includes/tftputils.php
@@ -212,8 +212,8 @@ function updateBootMode ($cmd, $idfield, $idvalue, $lang) {
if (empty ($idfield) or empty ($idvalue))
return;
// Control para evitar ataques XSS.
- $idfield = mysql_real_escape_string ($idfield);
- $idvalue = mysql_real_escape_string ($idvalue);
+ $idfield = mysqli_real_escape_string ($cmd->Conexion->controlador, $idfield);
+ $idvalue = mysqli_real_escape_string ($cmd->Conexion->controlador, $idvalue);
// Obtener los ordenadores asociados al aula y sus plantillas de arranque.
$cmd->texto = "SELECT idordenador AS hostid, arranque AS bootopt