If I deliberately try to download a file which doesn't exist (mysite.com/download/blah), this happens:

Access denied
• warning: filesize() [function.filesize]: stat failed for sites/default/files/secure/blah in {docroot}/sites/all/modules/email_download/email_download.module on line 365.
• warning: readfile(sites/default/files/secure/blah) [function.readfile]: failed to open stream: No such file or directory in{docroot}/sites/all/modules/email_download/email_download.module on line 369.
You are not authorized to access this page.

How can I suppress this chatty message, or redirect to some custom message?

(I know there is a newer version of email_download, I'm about to try it)

Comments

hadsie’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Category: support » bug

Yeah, this is a bug. I'll fix it in the next update.

hadsie’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

Finally had time to devote to this module again. Fixed in the latest dev release.

hadsie’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.