Skip to content

Update secure_url to match protocol of current page. Bug 901523.#1136

Merged
pmclanahan merged 1 commit intomozilla:masterfrom
jpetto:bug-901523-form-https-errors
Aug 7, 2013
Merged

Update secure_url to match protocol of current page. Bug 901523.#1136
pmclanahan merged 1 commit intomozilla:masterfrom
jpetto:bug-901523-form-https-errors

Conversation

@jpetto
Copy link
Copy Markdown
Contributor

@jpetto jpetto commented Aug 6, 2013

AJAX requests will error out when being made from HTTP to HTTPS. CSRF protected forms require protocols to match.

Longer term solution (forcing all of mozilla.org to be HTTPS) is in the works. This is a passive patch to immediately fix HTTP to HTTPS errors introduced in PR 928 (#928).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be more readable to use the more traditional if block.

@pmclanahan
Copy link
Copy Markdown
Contributor

Also jenkins failed.

Apart from those things I like this.

@jpetto
Copy link
Copy Markdown
Contributor Author

jpetto commented Aug 6, 2013

Oh yeah, tests. I should update those. I'll also update to a standard if block and update.

@jpetto
Copy link
Copy Markdown
Contributor Author

jpetto commented Aug 7, 2013

@pmclanahan r?

pmclanahan pushed a commit that referenced this pull request Aug 7, 2013
Update secure_url to match protocol of current page. Bug 901523.
@pmclanahan pmclanahan merged commit 43c3add into mozilla:master Aug 7, 2013
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