diff options
author | Friendika <info@friendika.com> | 2011-02-16 17:32:15 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-16 17:32:15 -0800 |
commit | 527e050ecc1037973595fd5de12682cfa9e19d64 (patch) | |
tree | 3f7f40a0a149e098855fd736cf25a5c6af0e3d9d /boot.php | |
parent | 9f1f9da89bb98d768b7a41b388e9c5c0d28ec946 (diff) | |
download | volse-hubzilla-527e050ecc1037973595fd5de12682cfa9e19d64.tar.gz volse-hubzilla-527e050ecc1037973595fd5de12682cfa9e19d64.tar.bz2 volse-hubzilla-527e050ecc1037973595fd5de12682cfa9e19d64.zip |
sanitise all incoming url's - also stop them from getting mangled by simplepie
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); +}} + |