Ticket #853 (closed defect: fixed)

Opened 3 years ago

Last modified 1 year ago

pdf conversion misses images if wiki not on standard port

Reported by: anonymous Assigned to: athomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description (Last modified by coderanger)

PDF conversion was missing images because my web server running Trac is not on a standard port. When I changed the line that is supposed to correct the image links from:

 page = re.sub('<img src="(?!\w+://', '<img src="%s://%s' % (req.scheme, req.server_name), page)

to:

 page = re.sub('<img src="(?!\w+://', '<img src="%s://%s:%d' % (req.scheme, req.server_name, req.server_port), page)

Then it now works ok for me.

Thanks for a very useful plugin!

Attachments

Change History

10/30/06 17:11:03 changed by coderanger

  • description changed.

Fixing formatting

10/31/06 03:25:36 changed by coderanger

  • status changed from new to closed.
  • resolution set to fixed.

(In [1462]) Allow non-standard ports. Fixes #853.


Add/Change #853 (pdf conversion misses images if wiki not on standard port)




Change Properties
Action