Update secure_url to match protocol of current page. Bug 901523.
Merge pull request #1136 from jpetto/bug-901523-form-https-errors

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