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

Middleware HTTPSNonWWWRedirect out of range 4 #1811

Closed
syssam opened this issue Mar 16, 2021 · 1 comment · Fixed by #1813
Closed

Middleware HTTPSNonWWWRedirect out of range 4 #1811

syssam opened this issue Mar 16, 2021 · 1 comment · Fixed by #1813

Comments

@syssam
Copy link

syssam commented Mar 16, 2021

Middleware HTTPSNonWWWRedirect out of range 4

@syssam syssam changed the title HTTPSNonWWWRedirectWithConfig out of range 4 Middleware HTTPSNonWWWRedirect out of range 4 Mar 16, 2021
@aldas
Copy link
Contributor

aldas commented Mar 16, 2021

I assume this is about case when host value is shorter than 4 characters in redirect middleware.

if host[:4] == www {

There seems to be multiple places in that middleware that could problematic when host is too short.

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

Successfully merging a pull request may close this issue.

3 participants