From 749ae9b29720b880d6afbb943a3099fb39f82536 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 17 Jul 2012 18:33:04 -0700 Subject: [PATCH] filter the protocol specifier in bbcode links. --- boot.php | 2 +- include/bbcode.php | 1 + util/messages.po | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 64ec10549b..6695d4e521 100644 --- a/boot.php +++ b/boot.php @@ -10,7 +10,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '3.0.1406' ); +define ( 'FRIENDICA_VERSION', '3.0.1407' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DB_UPDATE_VERSION', 1153 ); diff --git a/include/bbcode.php b/include/bbcode.php index 63dd9695e7..5449fae3e9 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -386,6 +386,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { // fix any escaped ampersands that may have been converted into links $Text = preg_replace("/\<(.*?)(src|href)=(.*?)\&\;(.*?)\>/ism",'<$1$2=$3&$4>',$Text); + $Text = preg_replace("/\<(.*?)(src|href)=\"[^hfm](.*?)\>/ism",'<$1$2="">',$Text); if($saved_image) $Text = bb_replace_images($Text, $saved_image); diff --git a/util/messages.po b/util/messages.po index 5c96401d13..7b4d43bcf1 100644 --- a/util/messages.po +++ b/util/messages.po @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: 3.0.1406\n" +"Project-Id-Version: 3.0.1407\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-16 10:00-0700\n" +"POT-Creation-Date: 2012-07-17 10:00-0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"