Bug 41572 - Error in url(...) URI processing
Summary: Error in url(...) URI processing
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fo tree (show other bugs)
Version: 0.93
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-08 09:38 UTC by Erwin Tratar
Modified: 2012-04-01 07:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erwin Tratar 2007-02-08 09:38:20 UTC
URISpecification.getURL() cannot handle URIs like "url('(foo)bar')". It will
extract "(foo" only. 

The problem can be fixed by replacing

href = href.substring(4, href.indexOf(")")).trim();

with

href = href.substring(4, href.lastIndexOf(")")).trim();
Comment 1 Andreas L. Delmelle 2007-02-08 09:48:09 UTC
Fixed in FOP Trunk. See: http://svn.apache.org/viewvc?view=rev&rev=504980

Thanks for reporting and suggesting the fix!
Comment 2 Glenn Adams 2012-04-01 07:00:49 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed