diff options
| author | 2013-11-15 17:42:15 +0100 | |
|---|---|---|
| committer | 2013-11-15 17:42:15 +0100 | |
| commit | 190e724aee234eb4ef0e476f20e89a9aaefce778 (patch) | |
| tree | 399a85fa630b0ea19e8793a4f4a322f2a7914a57 /lib/lib_rss.php | |
| parent | c805b031481d5b53b0f5f9d6d39bc83911709834 (diff) | |
Suppression référence lib_text et optimisation lazyimg
Optimisation du regex de lazyimg.
Et une référence à lib_text avait été oubliée dans
https://github.com/marienfressinaud/FreshRSS/commit/5dfe281d60e21fd59bfa780fad0aa177a8feaf14
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
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( - '/<img([^<]+)src=([\'"])([^"\']*)([\'"])([^<]*)>/i', - '<img$1src="' . Url::display('/data/grey.gif') . '" data-original="$3"$5>', + '/<img([^>]+?)src=[\'"]([^"\']+)[\'"]([^>]*)>/i', + '<img$1src="' . Url::display('/data/grey.gif') . '" data-original="$2"$3>', $content ); } |
