--- pdfview.old/pdfview.module 2006-11-14 00:34:53.000000000 +0100 +++ pdfview/pdfview.module 2007-01-09 12:26:29.000000000 +0100 @@ -251,7 +251,8 @@ function _pdfview_rewrite_image_url($matches = array()) { $path = $matches[0]; $path = str_replace($GLOBALS['base_url'].'/', '', $path); - $path = str_replace(base_path(), '', $path); + //$path = str_replace(base_path(), '', $path); + if (substr ($path, 0 , 1) == "/") $path = substr ($path, 1); if (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PRIVATE) { $q = variable_get('clean_url', 0) ? '' : '?q='; $path = str_replace($q.'system/', '', $path);