Bug #1613

url cannot refer to an external url

Added by Giulio Moro over 8 years ago. Updated over 8 years ago.

Status:ResolvedStart date:2016-02-21
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

The url attribute is always interpreted as a relative url, whereas absolute urls should be allowed (e.g.: when they contain http:// or https:// or they start with // )

e.g.: this line in the xml file

        <audioelement url="http://omctreviso.it/wav/Ab9-Manuals%20out-number1-velocity004.wav" id="track-0"/>

causes http://localhost:8000/index.html?url=example_eval/ABh.xml to
GET http://localhost:8000/example_eval/http://omctreviso.it/wav/Ab9-Manuals%20out-number1-velocity004.wav

History

#1 Updated by Nicholas Jillings over 8 years ago

  • Status changed from New to Resolved

You need to set the hostURL attribute of the parent <page> node to null.

#2 Updated by Nicholas Jillings over 8 years ago

Or rather, you need to have the hostURL="" or not have it in the attribute at all, where it will default to equal "".

Also available in: Atom PDF