Issue Bug Closed

#22093jumpurl.secure crashes on spaces or umlauts in URLs

Ernst Went 02/09/10, 18:33 updated 07/05/13, 13:55

Description

Spaces or umlauts in the filename or path make a secure download link generated via the function filelink crash, i.e. the error message “Calculated juHash did not match the submitted juHash” is shown.

This is because the URL-encoding used for calculating the file hash differs in class.tslib_fe.php and class.tslib_content.php.
The verification routine for the download link in class.tslib_fe.php should use
str_replace(‘%2F’, ‘/’, rawurlencode($this->jumpurl))
instead of
$this->jumpurl
for calculating the hash – as it is done in the function filelink.

A patch is provided.

(issue imported from #M13484)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.