sanitise all incoming url's - also stop them from getting mangled by simplepie
This commit is contained in:
parent
9f1f9da89b
commit
527e050ecc
5 changed files with 32 additions and 18 deletions
7
boot.php
7
boot.php
|
@ -2453,7 +2453,12 @@ if(! function_exists('get_plink')) {
|
|||
function get_plink($item) {
|
||||
$a = get_app();
|
||||
$plink = (((x($item,'plink')) && (! $item['private'])) ? '<div class="wall-item-links-wrapper"><a href="'
|
||||
. $item['plink'] . '" title="' . t('link to source') . '"><img src="' . $a->get_baseurl() . '/images/link-icon.gif" alt="' . t('link to source') . '" /></a></div>' : '');
|
||||
. $item['plink'] . '" title="' . t('link to source') . '"><img src="' . $a->get_baseurl() . '/images/remote-link.gif" alt="' . t('link to source') . '" /></a></div>' : '');
|
||||
return $plink;
|
||||
}}
|
||||
|
||||
if(! function_exists('unamp')) {
|
||||
function unamp($s) {
|
||||
return str_replace('&', '&', $s);
|
||||
}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue