diff options
Diffstat (limited to 'init.php')
-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; } } } |