SID-01204: Attachements saved as .pl.exe are executable
| Status: |
Unanswered |
TWiki version: |
4.3.2 |
Perl version: |
|
| Category: |
|
Server OS: |
CentOS release 5.4 (Final) |
Last update: |
14 years ago |
When I upload a .pl file to a page, it automatically renames the file to .pl.txt, which is good. However, when I click on the attachment, it still attempts to execute the attachment, as opposed to showing it as a text file.
Here is the relevant section of my twiki.conf:
<Directory "/var/www/twiki/pub">
#if you are using an svn checkout an pseudo-install.pl, you will need to enable symlinks
#Options FollowSymLinks
Options None
# AllowOverride Limit
AllowOverride None
Allow from all
# If you have PHP4 or PHP5 installed as Apache module make sure the directive below is enabled
# If you do not have PHP installed you will need to comment out the directory below
# to avoid errors.
# If PHP is installed as CGI this flag is not needed and will in fact make Apache fail
php_admin_flag engine off
# If you have PHP3 installed as Apache module make sure the directive below is enabled
# If PHP is installed as CGI this flag is not needed and will in fact make Apache fail
#php3_engine off
# This line will redefine the mime type for the most common types of scripts
AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi
</Directory>
Any help in resolving this would be greatly appreciated. I am new to twiki and have not been able to find much online for this issue.
--
TWikiGuest - 2011-06-14
Discussion and Answer
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-08-01
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.