summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--[-rwxr-xr-x]init.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.php b/init.php
index e62e353..76969e0 100755..100644
--- a/init.php
+++ b/init.php
@@ -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;
}
}
}