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

Fix: SCRIPT_NAME is not stripped from collections path. #598

Closed
wants to merge 1 commit into from
Closed

Fix: SCRIPT_NAME is not stripped from collections path. #598

wants to merge 1 commit into from

Conversation

htgoebel
Copy link

This is required if radicale is served e.g. via http://server/radicale/

@htgoebel
Copy link
Author

http://flask.pocoo.org/snippets/35/ has a different approach: it removes script name from environ['PATH_INFO'], while my code on removes it from the variable path.

            path_info = environ['PATH_INFO']
            if path_info.startswith(script_name):
                environ['PATH_INFO'] = path_info[len(script_name):]

This was referenced May 22, 2017
@liZe
Copy link
Member

liZe commented May 26, 2017

Thanks for this pull request!

I've cherry-picked the equivalent 577d931, this should be fixed now.

@liZe liZe closed this May 26, 2017
@liZe liZe added this to the 2.0.0 milestone May 26, 2017
@htgoebel htgoebel deleted the fix-script-name branch May 26, 2017 15:19
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

Successfully merging this pull request may close these issues.

2 participants