Fix XSS security hole on comments

master
pecesama 2007-11-05 23:00:57 +00:00
parent f861ea764c
commit b19b0f5d72
1 changed files with 5 additions and 1 deletions

View File

@ -103,6 +103,8 @@ class Conexion_Mysql {
$cols .= "$llave,";
$valor = htmlspecialchars($valor,ENT_QUOTES);
$tipo_col = $this->obtenerTipoCampo($tabla, $llave); // obtiene el tipo de campo
if (!$tipo_col) return false; // error!
@ -154,6 +156,8 @@ class Conexion_Mysql {
foreach ($datos as $llave=>$valor) {
$sql .= " $llave=";
$valor = htmlspecialchars($valor,ENT_QUOTES);
$tipo_col = $this->obtenerTipoCampo($tabla, $llave); // obtiene el tipo de campo
if (!$tipo_col) return false; // error!