Bug in download url
-
Hi, in your plugin in
shortcodes.php:527
you have following code:$download_url = home_url() . '/?file=' . rawurlencode( $file ) . '&nonce=' . rawurlencode( $nonce ) . '&email=' . rawurlencode( $values['email'] );
which causes generated link to be inaccessible in some clients – all
&
inhref
s should be encoded as entities – meaning&
s instead of&
.Here you have the correct code, tested to be working:
$download_url = home_url() . '/?file=' . rawurlencode( $file ) . '&nonce=' . rawurlencode( $nonce ) . '&email=' . rawurlencode( $values['email'] );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Bug in download url’ is closed to new replies.