[PATCH] Image links based on RFC2397 not supported
|Reported by:||Dirk Stöcker||Owned by:||Dirk Stöcker|
Description (last modified by )
Directly included images in the rfc:2397 format isn't supported. They don't work in
[[Image()]] macro nor in
See also #8168 which comes up again, as there is a comma in the string which can't be encoded as
%2c, otherwise fix would be easy.
data: is easy, simply handle it like
http:, but the comma is a problem again. Proper argument splitting is required.
old new 581 581 parts = filespec.split(':') 582 582 url = raw_url = desc = None 583 583 attachment = None 584 if (parts and parts in ('http', 'https', 'ftp')): # absolute 584 if (parts and parts in ('http', 'https', 'ftp', 'data')): # absolute 585 if parts == "data": 586 filespec = filespec.replace("%2C", ",") 585 587 raw_url = url = filespec 586 588 desc = url.rsplit('?') 587 589 elif filespec.startswith('//'): # server-relative
Simple patch with a workaround for the comma issue.
Change History (25)
comment:6 by , 6 years ago
|Summary:||Image links based on RFC2397 not supported → [PATCH] Image links based on RFC2397 not supported|