Item11345: Make copying of external resources (images) optional
Current State: Closed
Released In: n/a
Target Release: n/a
I need to retain external links in the HTML rendering of the Wiki pages. As I read the code, there are currently two places where copying of internal resources is done:
Publisher::_copyResource, when examining CSS files
Publisher::_handleURL, which is called once, when dealing with
The first instance is accidental (I believe) and doesn't really help much as the CSS itself would need to be rewritten to take advantage of the local version of the resource. Item10597
provides a patch which removes this behavior.
The second instance is handled by the attached patch, which provides a new boolean configuration parameter,
, which is used by
. It defaults to
(for backwards compatibility).
This patch also contains a fix to
to ignore URLish paths. This is actually a bug fix, as
will return the URL if it could not parse or retrieve the contents. This was passed on to
which assumed all paths were local directory paths.
I've had to also include the patch from Item11339
in this patch. Sorry about the mess.
The patch should apply against version 2.3.2 of the plugin.
- 09 Dec 2011
- 30 Jul 2012