bug #37, ampersand + everything following in url is stripped when using link icon to share link

This commit is contained in:
Friendika 2011-04-10 03:36:12 -07:00
commit 58508201a5
4 changed files with 30 additions and 2 deletions

View file

@ -5,7 +5,11 @@ require_once('library/HTML5/Parser.php');
function parse_url_content(&$a) {
$url = trim($_GET['url']);
logger('parse_url: ' . $_GET['url']);
$url = trim(hex2bin($_GET['url']));
logger('parse_url: ' . $url);
$text = null;

View file

@ -20,4 +20,4 @@ function share_init(&$a) {
$o .= bbcode($r[0]['body'], true);
echo $o . '<br />';
killme();
}
}