Hardcoded wp-content/uploads directory since 4.8
-
I think there is an issue with your new rule for preventing execution in Uploads folder. Your updated rule specifies the uploads directory to be inside “/wp-content/”. This will only work if you did not change the name of the content folder – which most plugin users would have done, naturally.
A (somewhat) better rule in htaccess is below.
# Disable PHP in Uploads - Security > Settings > System Tweaks > Uploads RewriteRule ^(.*)/uploads/.*\.(?:php[1-6]?|pht|phtml?)$ - [NC,F]But I hope you guys can come up with a more strict solution where the variable for the content dir from wp-config.php is used as well.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Hardcoded wp-content/uploads directory since 4.8’ is closed to new replies.