function securepages_urlencode in Secure Pages 5
Same name and namespace in other branches
- 6 securepages.module \securepages_urlencode()
Copy of Drupals so we can redirect correctly
File
- ./
securepages.module, line 381
Code
function securepages_urlencode($text) {
if (variable_get('clean_url', '0')) {
return str_replace(array(
'%2F',
'%26',
'%23',
'//',
), array(
'/',
'%2526',
'%2523',
'/%252F',
), urlencode($text));
}
else {
return str_replace('%2F', '/', urlencode($text));
}
}