less code

This commit is contained in:
Shish
2012-03-09 18:14:14 +00:00
parent fb111803c7
commit 79ce40abd0
2 changed files with 4 additions and 6 deletions

View File

@ -34,6 +34,9 @@ function int_escape($input) {
* @retval string
*/
function url_escape($input) {
if(is_null($input)) {
return "";
}
$input = str_replace('^', '^^', $input);
$input = str_replace('/', '^s', $input);
$input = str_replace('\\', '^b', $input);