xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
732 stars 290 forks source link

Fix when manifestSrc contains a Shared Access Key #1735

Closed mlankamp closed 1 week ago

mlankamp commented 1 week ago

Ran into a problem today, the manifestSrc url contains a Shared Access Key (files are not public avialable) and the key contained a /.

Example: https://domain.com/manifest.json?sp=r&sig=/eDdWelJCWXFUnBrPdkyuvGW5b4VIvhfhHSg844pGsQ%3D

In this case the signature contains a /, this causes the function getBaseDirectory to get the wrong base path.

Solution: strip the querystring from the filePath