diff options
author | Andrew Dolgov <[email protected]> | 2018-04-17 11:54:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-04-17 11:54:37 +0300 |
commit | 73c432aba5c79809736d82fe28c67f051e09500e (patch) | |
tree | 32ec950e1796883ebd5d504a433f602e6db40971 | |
parent | d93f0e4be9ebf1c161ac258b7a179d9ab71a8b98 (diff) |
fix for new amazing bugs
-rw-r--r--[-rwxr-xr-x] | init.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -28,11 +28,13 @@ class Af_GoodShowSir extends Plugin { foreach ($images as $img) { $src = $img->getAttribute("src"); - if (strpos($src, " ") !== FALSE) { - $img->setAttribute("src", trim($src)); + $tmp = trim($src); + $tmp = str_replace("%20", "", $tmp); - $found = true; + if ($tmp != $src) { + $img->setAttribute("src", $tmp); + $found = true; } } } |