You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plesk servers use the domain/subdomain pattern 2 so this is a live issue.
Additionally the use of hidden files/folders is a valid and security enhancing use case - setting the Joomla tmp or log directory to a hidden *nix folder is a good thing. Also can be used to install a hidden Joomla installation in an obscure and hidden sub-folder of a live site.
The text was updated successfully, but these errors were encountered:
The first part of this matches all characters up to the first period [A-Za-z0-9_\/-]+
The second part then matches up to the next 'slash' [A-Za-z0-9_\.-]*
So the string /var/www/vhosts/website-net/subdomain-website-net/._hiddenTemp
is covered all the way by the first 2 parts and the hidden folder is allowed.
But the string /var/www/vhosts/website.net/subdomain.website.net/._hiddenTemp
skips to the thirs part of the regex pattern at the first slash after the first period in website.net
Then the third block won't allow the hidden prefix :(
Examining this in more detail this filter doesn't clean double dotted paths - don't know if this was intentional
/var/www/vhosts/mainsite/../another.website.net/something -> cleans to /var/www/vhosts/mainsite/../another.website.net/something
Steps to reproduce the issue
/var/www/vhosts/website-net/subdomain-website-net/._hiddenTemp
/var/www/vhosts/website.net/subdomain.website.net/._hiddenTemp
Expected result
/var/www/vhosts/website-net/subdomain-website-net/._hiddenTemp
/var/www/vhosts/website.net/subdomain.website.net/._hiddenTemp
Actual result
/var/www/vhosts/website-net/subdomain-website-net/._hiddenTemp
``
Additional comments
Plesk servers use the domain/subdomain pattern 2 so this is a live issue.
Additionally the use of hidden files/folders is a valid and security enhancing use case - setting the Joomla tmp or log directory to a hidden *nix folder is a good thing. Also can be used to install a hidden Joomla installation in an obscure and hidden sub-folder of a live site.
The text was updated successfully, but these errors were encountered: