Sometimes URL escaping is more appropriate than HTML escaping

git-svn-id: file:///home/shish/svn/shimmie2/trunk@126 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2007-05-23 03:44:15 +00:00
parent e188a49c58
commit e6668f53d7
6 changed files with 18 additions and 13 deletions

View File

@@ -12,6 +12,11 @@ function int_escape($input) {
return (int)$input;
}
function url_escape($input) {
$input = rawurlencode($input);
return $input;
}
function sql_escape($input) {
global $database;
return $database->db->Quote($input);