Images.php
authorAlan Knowles <alan@roojs.com>
Wed, 23 May 2012 02:11:27 +0000 (10:11 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 23 May 2012 02:11:27 +0000 (10:11 +0800)
Images.php

index 1f7c79d..4f05f22 100644 (file)
@@ -278,17 +278,18 @@ class Pman_Core_Images extends Pman
             
             // finally replace the original TAG with the new version..
             $old_src_tag = 'src="'. $attr[src] . '"';
-            $img = str_replace(
+            $new_img = str_replace(
                 'src="'. $attr[src] . '"',
-                $img->URL($new_thumbsize , $provider, $baseURL=false)
-                'src="'. $baseURL + implode('/', $type) . '/' . urlencode($img->filename)"', 
-            
+                'src="'. htmlspecialchars($img->URL($new_thumbsize , $provider, $baseURL)) . '"',
+                $img
+            );
             
             
+            $html = str_replace($img, $new_img);
             
             
             // make an image url..
-            print_R($umatch);  
+            
         }
         return $html;