User tests: Successful: Unsuccessful:
Pull Request for: #8957
Add htaccess und web.config files to the libaries folder that denys all direct accesses to the files in that folder
You are not allowed to direct access that file (e.g. a 403 error message)
In some server setups you see a error message.
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
We have also non joomla code in libraries
so better save than sorry :) You should never call something in libraries
from public.
Doing this change in the base libraries directory is going to be too intrusive to extensions which are doing terrible crap like serving web assets (CSS/JS) from the libraries directory. This also prevents them from having direct access scripts in the directory (which even though some will say the only valid entry point into a Joomla application is index.php you can still do this as long as you're taking care of all the risks involved, as in we do not forbid it).
If the intent is to merge this before 4.0 we can only protect the libraries/vendor
directory in this way. Anything more would cause more backlash than it's worth.
Labels |
Added:
?
|
Category | Libraries | ⇒ | External Library Libraries |
If the intent is to merge this before 4.0 we can only protect the libraries/vendor directory in this way. Anything more would cause more backlash than it's worth.
Done.
Could there be some server setups where adding a .htaccess file (or adding that option in it) would not be allowed and generate an error? Or is it safe to assume that it works on every shared hoster?
Title |
|
Title |
|
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-22 19:26:53 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Is there a reason to do this to the libraries folder rather than just
libraries/vendor