Revision 1475
Added by Luisehahne over 14 years ago
| functions.php | ||
|---|---|---|
| 1413 | 1413 |
return false; |
| 1414 | 1414 |
} |
| 1415 | 1415 |
} |
| 1416 |
|
|
| 1417 |
/* |
|
| 1418 |
urlencode function and rawurlencode are mostly based on RFC 1738. |
|
| 1419 |
However, since 2005 the current RFC in use for URIs standard is RFC 3986. |
|
| 1420 |
Here is a function to encode URLs according to RFC 3986. |
|
| 1421 |
*/ |
|
| 1422 |
if(!function_exists('url_encode')){
|
|
| 1423 |
function url_encode($string) {
|
|
| 1424 |
$string = html_entity_decode($string,ENT_QUOTES,'UTF-8'); |
|
| 1425 |
$entities = array('%20', '%21', '%2A', '%27', '%28', '%29', '%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');
|
|
| 1426 |
$replacements = array(' ','!', '*', "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");
|
|
| 1427 |
return str_replace($entities, $replacements, rawurlencode($string)); |
|
| 1428 |
} |
|
| 1429 |
} |
|
Also available in: Unified diff
! security fixes media, groups, users, sections
! reworked add sections in pages
! fix set empty href in show_menu2
! set show_menu2 version to 4.9.6
! reworked Droplet LoginBox, add redirect query
- remove unneeded folder js
! set Droplet to version 1.1.0
+ add checkboxes to change frontend absolute url to relative urls
! set output_filter version to 0.2