Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




File attachment permissions not working with SSL

UserPost

10:45 am
April 4, 2011


Janis

Member

posts 2

1

Hello.

I recentlly upgraded to the latest role scoper plugin version (1.3.29-beta), and have the following problem now:

When I go inside Role Scoper plugin options, I have this error message at "File Filtering" section "Note: Direct access to uploaded file attachments cannot be filtered because your WP_CONTENT_DIR is not in the WordPress branch." (which comes from admin/options.php:771), and it is not allowed to regenerate .htaccess rules anymore.

The problem arises because of some strange url checks, which tests if current web site url is substring of upload directory url. As I have SSL enabled for admin area, and upload dir is located inside unsecured area, these checks always fail. And there's more places where the same checks are made (in rewrite_rules_rs.php:170 -> strpos($row->guid, $baseurl), etc.). I can't see the connection with SSL and file downloads, how the web protocol could possibly impact the logic of plugin that is made for file permission enforcement.

Does anyone have any comments about this issue? I would like to fix this ASAP without editing plugin source on my own, to avoid update clashes in the future.

Thanks.


About the Agapetry forum

Currently Online:

16 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin