aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-16 17:32:15 -0800
committerFriendika <info@friendika.com>2011-02-16 17:32:15 -0800
commit527e050ecc1037973595fd5de12682cfa9e19d64 (patch)
tree3f7f40a0a149e098855fd736cf25a5c6af0e3d9d /boot.php
parent9f1f9da89bb98d768b7a41b388e9c5c0d28ec946 (diff)
downloadvolse-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.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index dcf5b1c1a..322a4e307 100644
--- a/boot.php
+++ b/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('&amp;', '&', $s);
+}}
+