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

Do not escape the '#' in Starting & Accessing redirect #1467

Merged
merged 1 commit into from
Apr 28, 2020
Merged

Do not escape the '#' in Starting & Accessing redirect #1467

merged 1 commit into from
Apr 28, 2020

Conversation

MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Apr 28, 2020

The 'NE' flag (RewriteRule flag) is used successfully with the other URL in the rewrite which uses an ID inside the page. Use it here as well.

Fixes jenkins.io issue 3097

@halkeye could you review this to confirm that it is safe to use the same technique for "Starting and Accessing Jenkins" as is used for "Disabling Security"?

The 'NE' flag is used successfully with the other URL in the rewrite
which uses an ID inside the page.  Use it here as well.
@halkeye
Copy link
Member

halkeye commented Apr 28, 2020

Yea, there's no querystring or regex capture that could potentially do harm or anything. I think its a safe thing to do

Docs - https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_ne

@MarkEWaite
Copy link
Contributor Author

@olblak or @rtyler would you be willing to merge this?

@halkeye and I have both confirmed it matches the other case of using a RewriteRule with a URL that contains a '#' and it matches the Apache documentation.

@olblak olblak merged commit 1e1f09e into jenkins-infra:staging Apr 28, 2020
@MarkEWaite MarkEWaite deleted the fix-accessing-jenkins-redirect branch April 28, 2020 12:25
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.

The "Starting and Accessing Jenkins" redirect uses an unescaped '#' that can't be resolved
3 participants