Closed (fixed)
Project:
PDFPreview
Version:
6.x-1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
2 Mar 2012 at 10:43 UTC
Updated:
5 Apr 2012 at 22:32 UTC
Hello,
first of all: thanks for your module and thanks for your effort! The module looks very good, however, it does have an issue with drupal installations that aren't installed in "/" but in "/".
The code in line 92 in pdfpreview.module is:
$output = '<img src="/' . $output_filename . '" title="' . $item['data']['description'] . '" alt="' . $item['data']['description'] .'" />';
but it should be
$output = '<img src="' . base_path() . $output_filename . '" title="' . $item['data']['description'] . '" alt="' . $item['data']['description'] .'" />';
If there is anyone who needs a patch I'll provide one, just let me know here.
Comments
Comment #1
KhaledBlah commentedjust noticed there is a similar problem in line 101:
should be
Comment #2
KhaledBlah commentedis there any comment from the developer at all?
Comment #3
juanjo_vlc commentedI've put your proposed fix on the 6.x-1.x release.
Thanks.
Comment #4
juanjo_vlc commentedComment #5
juanjo_vlc commented