[Pmwiki-users] adding upload extensions
Neil Herber
nospam
Thu Jan 20 20:26:42 CST 2005
At 2005-01-20 08:19 PM -0500, Tom Holroyd is rumored to have said:
>The uploads admin page doesn't cover the case of adding a new
>extension, such as ".py", which is currently disallowed. How do
>I do that, without modifying uploads.php?
Can you not just add a line to local/config.php?
$UploadExtSize['py'] = 20000;
This will allow Python scripts up to 20 kbytes to be uploaded.
*** Make sure that scripts can't be executed in the uploads directory or
you will have opened a massive security hole on your system. ***
An easy way of getting around this is to upload the script in ZIP format,
as in "virusexample.py.zip"
Neil
Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668
More information about the pmwiki-users
mailing list