From a8a21da6f5e8b6dda6e7ce7132343609dd686dde Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 6 Aug 2015 08:13:15 +0200 Subject: [PATCH] Some steps for a better screen reader compatibility --- include/bbcode.php | 2 +- view/templates/common_tabs.tpl | 4 +- view/theme/vier/style.css | 14 +++++ view/theme/vier/templates/nav.tpl | 62 +++++++++---------- .../vier/templates/threaded_conversation.tpl | 3 +- view/theme/vier/templates/wall_thread.tpl | 30 ++++----- 6 files changed, 64 insertions(+), 51 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index e872d859c5..8102fc3f71 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1207,7 +1207,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal // 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)=\"(?!http|ftp|mailto|cid)(.*?)\>/ism",'<$1$2="">',$Text); + $Text = preg_replace("/\<([^>]*?)(src|href)=\"(?!http|ftp|mailto|gopher|cid)(.*?)\>/ism",'<$1$2="">',$Text); if($saved_image) $Text = bb_replace_images($Text, $saved_image); diff --git a/view/templates/common_tabs.tpl b/view/templates/common_tabs.tpl index 9f12709042..b5eb9b48e2 100644 --- a/view/templates/common_tabs.tpl +++ b/view/templates/common_tabs.tpl @@ -1,6 +1,6 @@ -