Skip Menu |
 

This queue is for tickets about the HTML-WikiConverter CPAN distribution.

Report information
The Basics
Id: 58415
Status: open
Priority: 0/
Queue: HTML-WikiConverter

People
Owner: Nobody in particular
Requestors: dmaszle [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: URL encoding not preserved in href attributes
Date: Tue, 15 Jun 2010 10:08:13 -0700
To: bug-HTML-WikiConverter [...] rt.cpan.org
From: Don Maszle <dmaszle [...] gmail.com>
Download (untitled) / with headers
text/plain 867b
Using HTML::WikiConverter-0.68 via command-line (and the current web interface at http://toolserver.org/~diberri/cgi-bin/html2wiki/index.cgi), URL encoded entities are not preserved when converting href attributes. Depending on the Wiki dialect, this can result in broken links. The most common problem is likely to arise for URLs having spaces encoded as "%20" which produces broken links for popular dialects such as MediaWiki, WIkkaWiki, GoogleCode, et al. This does not appear to be true for similarly encoded src attributes. I've amended our local installation by removing the "uri_unescape" call from line 502 in the main module's __rel2abs() sub: HTML::WikiConverter.pm: 502c $node->attr( $attr => URI->new_abs( $node->attr($attr), $self->base_uri )->as_string ); however, I'm not sure if that call is serving some other purpose. Regards, Don Maszle
Subject: Re: Fwd: [rt.cpan.org #58415] URL encoding not preserved in href attributes
Date: Fri, 13 May 2011 14:27:30 +1200
To: bug-HTML-WikiConverter [...] rt.cpan.org
From: Brett Wilkins <brett [...] catalyst.net.nz>
Download (untitled) / with headers
text/plain 323b
I have also run into this bug. It also causes issues with utf8-encoded paths (IE japanese text). The attached patch fixes this for me. (The result is the same as the OP has pasted in) Cheers, Brett On 13/05/11 11:20, bug-HTML-WikiConverter@rt.cpan.org wrote: Show quoted text
> This is forward of transaction #791313 of a ticket #58415
Download WikiConverter.patch
text/x-diff 688b

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.