overriding functions in lib/filelib.php

Re: overriding functions in lib/filelib.php

by Di Juwel -
Number of replies: 2
what I want to achieve:

when a user tried to download a .php file that a user (him or another) upload - I want to deny this download.
to display an error message instead.

by the way I already managed to prevent users from uploading .php files in the first place.

In reply to Di Juwel

Re: overriding functions in lib/filelib.php

by Di Juwel -

what I want to achieve:

when a user tries to download a .php file that a user (him or another) uploaded - I want to deny the download for security reasons and display an error message instead.

by the way I already managed to prevent users from uploading .php files in the first place.