Index: pdfview.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pdfview/pdfview.module,v
retrieving revision 1.37.2.3
diff -u -F^f -r1.37.2.3 pdfview.module
--- pdfview.module	27 Jan 2007 09:10:01 -0000	1.37.2.3
+++ pdfview.module	3 Feb 2007 12:12:32 -0000
@@ -249,9 +249,10 @@ function pdfview_check_images($string) {
 
 function _pdfview_rewrite_image_url($matches = array()) {
   $path = $matches[0];
-  $path = str_replace($GLOBALS['base_url'].'/', '', $path);
-  if (base_path() == '/' && $path[0] == '/') { 
-    $path = substr($path, 1);
+  if (base_path() == '/') {
+    if ($path[0] == '/') {
+      $path = substr($path, 1);
+    }
   }
   else {
     $path = str_replace(base_path(), '', $path);
