Replace external advisory urls with url.php?url=sdf&token=...

This commit is contained in:
Tyron Madlener 2011-08-16 13:14:48 +03:00
parent 63342fdf4a
commit 32724b3077

View File

@ -129,7 +129,7 @@ class Advisor
// Replaces external Links with PMA_linkURL() generated links
$rule['recommendation'] = preg_replace(
'#href=("|\')(https?://[^\1]+)\1#ie',
'\'href="\' . PMA_linkURL("\2") . \'"\'',
'\'href="url.php?url=\' . urlencode("\2") . \'&token='.$_SESSION[' PMA_token '].'"\'',
$rule['recommendation']
);
break;