mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Add function from php.net manual page for php < 4.3.0
This commit is contained in:
parent
da05690b13
commit
aba9c8cbf3
10
redirect.php
10
redirect.php
@ -22,6 +22,16 @@
|
||||
"<a href=\"$webserverURL/redirect.php?go=".htmlentities(urlencode('http://www.egroupware.org')).'">'
|
||||
*/
|
||||
|
||||
if(!function_exists('html_entity_decode'))
|
||||
{
|
||||
function html_entity_decode($given_html, $quote_style = ENT_QUOTES)
|
||||
{
|
||||
$trans_table = array_flip(get_html_translation_table( HTML_SPECIALCHARS, $quote_style));
|
||||
$trans_table['''] = "'";
|
||||
return(strtr($given_html, $trans_table));
|
||||
}
|
||||
}
|
||||
|
||||
if($_GET['go'])
|
||||
{
|
||||
Header('Location: ' . html_entity_decode(urldecode($_GET['go'])));
|
||||
|
Loading…
Reference in New Issue
Block a user