This commit is contained in:
Julio Cesar Laura Avendaño
2018-07-20 00:28:45 +00:00
committed by Julio Cesar Laura Avendaño
parent adcbbbed97
commit 3d9380dbd6
2 changed files with 31 additions and 0 deletions

View File

@@ -352,6 +352,7 @@ class InputFilter
* @param String $source
* @param Resource $connection - An open MySQL connection
* @return String $source
* @todo We need to review this method, because the sended string is unescaped
*/
public function escapeString($string, &$connection)
{
@@ -364,6 +365,19 @@ class InputFilter
}
return $string;
}
/*
* Escapes a string using a Propel connection
*
* @param string $string The string to escapes
* @param object $connection The connection object
*
* @return string
*/
public function escapeUsingConnection($string, $connection)
{
return mysql_real_escape_string($string, $connection->getResource());
}
/**
* Internal method removes tags/special characters