avoid double escapes

This commit is contained in:
Shish
2010-03-24 18:24:47 +00:00
parent ba85899d60
commit 20edd68093
2 changed files with 11 additions and 1 deletions

View File

@@ -46,6 +46,16 @@ function sql_escape($input) {
return $database->db->Quote($input);
}
/**
* Some functions require a callback function for escaping,
* but we might not want to alter the data
*
* @retval string
*/
function no_escape($input) {
return $input;
}
/**
* Turn a human readable filesize into an integer, eg 1KB -> 1024
*