When file name in "Content-Disposition:" header same as in URL (or entered manually in "Save download to file" field) d4x is trying to copy file to itself that results to trunicating file to 0 bytes. Reproducible: Always Steps to Reproduce: 1. ------------------------------- cd htdocs cat << EOF > download.php <?php header('Content-Disposition: attachment; filename=file.zip'); readfile('av-330.gif'); ?> EOF echo "RewriteRule ^file.zip$ /download.php" >> .htaccess ------------------------------- 2. Create av-330.gif ;) 3. Add "http://host/file.zip" download in d4x Actual Results: The file has zero size. Expected Results: d4x must check that filenames are equal. Patch attached. Actually it adds only one line;) I`m tried to contact developer of d4x, but he didn`t answer.
Created attachment 152159 [details, diff] bugfix
gone