process # in deref.php
This commit is contained in:
parent
26914fa012
commit
fd7db4aee4
2 changed files with 2 additions and 1 deletions
|
@ -53,6 +53,7 @@ $sepPos = strpos($url, '?');
|
|||
if($sepPos !== false)
|
||||
{
|
||||
$targetURL = substr($url, $sepPos+1);
|
||||
$targetURL = str_replace('%23','#',$targetURL);
|
||||
$tpl->assign('pref_exturl_warning', $bm_prefs['exturl_warning']);
|
||||
if($bm_prefs['exturl_warning']=='no') {
|
||||
$tpl->assign('url', HTMLFormat($targetURL));
|
||||
|
|
|
@ -142,7 +142,7 @@ if(class_exists('DOMDocument'))
|
|||
|
||||
if($lcName == 'href' && preg_match('~^(http|https|ftp)://~i', $val))
|
||||
{
|
||||
$val = ($this->replyMode ? '' : 'deref.php?') . $val;
|
||||
$val = ($this->replyMode ? '' : 'deref.php?') . str_replace('#','%23',$val);
|
||||
$allow = true;
|
||||
}
|
||||
else if($lcName == 'href' && preg_match('~^mailto:~i', $val))
|
||||
|
|
Loading…
Reference in a new issue