From 190e724aee234eb4ef0e476f20e89a9aaefce778 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 15 Nov 2013 17:42:15 +0100 Subject: Suppression référence lib_text et optimisation lazyimg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Optimisation du regex de lazyimg. Et une référence à lib_text avait été oubliée dans https://github.com/marienfressinaud/FreshRSS/commit/5dfe281d60e21fd59bfa780fad0aa177a8feaf14 --- lib/lib_rss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 473531707..e4518ab4b 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -210,8 +210,8 @@ function dowload_favicon ($website, $id) { */ function lazyimg($content) { return preg_replace( - '//i', - '', + '/]+?)src=[\'"]([^"\']+)[\'"]([^>]*)>/i', + '', $content ); } -- cgit v1.2.3