Skip to content

Fix building relative URIs

Thomas Holder requested to merge speleo3/libxml2:fix-relative into master

Examples:

testURI --relative --base file:///a file:///b

  • New correct result: b
  • Old incorrect result: ../b

testURI --relative --base file:///a file:///

  • New correct result: ./
  • Old incorrect result: ../

testURI --relative --base file:///a/b file:///a/

  • New correct result: ./
  • Old incorrect result: ../../a/

This bug affects an Inkscape merge request.

This MR also adds the --relative flag to testURI and removes some unreachable code.

Merge request reports