Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clients no longer able to open their docx files stored in https://weeklystickypro.com/wp-content/plugins/s2member-files/ secure folder. The most recent s2member pro is intsalled. They are getting the forbidden page below. #1234

Open
rshawdc opened this issue Apr 3, 2023 · 4 comments

Comments

@rshawdc
Copy link

rshawdc commented Apr 3, 2023

EXPLANATION OF THE ISSUE

STEPS TO REPRODUCE THE ISSUE

BEHAVIOR THAT I EXPECTED

BEHAVIOR THAT I OBSERVED

@rshawdc
Copy link
Author

rshawdc commented Apr 3, 2023

ScreenClip

@rshawdc
Copy link
Author

rshawdc commented Apr 3, 2023

do i need an update for my "s2member Secure-File Uploader" too? didn't see one on the site.

thanks!

@rshawdc
Copy link
Author

rshawdc commented Apr 3, 2023

Im the administrator and even I can't even access the folder.

Rob from Weekly Sticky Pro

@iverok
Copy link

iverok commented May 4, 2023

It looks like you have spaces in your filenames. A recent update of Apache (2.4.56 I believe) added a security fix that messes up rewrite rules for files with spaces in the filename - you should be seeing something like "Rewritten query string contains control characters or spaces" in your error logs.

The only fix we've found so far is to edit the .htaccess file generated by S2Member so that it has this before any RewriteConds or RewriteRules but after the RewriteBase:

RewriteRule ^(.*)$ $1 [B]

You may also want to try

 `RewriteRule ^(.*)$ $1 "[B= ?,BNP]"`

which should only modify spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants