使用OpenID登录时,如何在URL中跳过&符号? [英] How do I have to escape ampersands in URLs when logging in with OpenID?

查看:255
本文介绍了使用OpenID登录时,如何在URL中跳过&符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实我知道,我应该替换& by%26



但是我使用这个URL用OpenID登录:





因此,& campaign = 2 参数丢失





你能证实我是否正确地脱离了继续参数?那么它在我看来,因为这似乎是一个谷歌登录问题。

解决方案

您正确地逃脱Url,并且是,这是一个众所周知的 issue


Well actually I know, that I should replace & by %26

But I'm using this URL to log in with OpenID:

https://innubili-gidea.appspot.com/_ah/login_redir?claimid=https://www.google.com/accounts/o8/site-xrds?hd=icada.com&continue=https://innubili-gidea.appspot.com/%3Fdomain%3Dicada.com%26campaign%3D2%26

As you can see, the continue parameter is properly escaped.

But after being redirected through Googles login pages, it redirects me back to

https://innubili-gidea.appspot.com/?domain=icada.com

So the &campaign=2 parameter is missing

Can you confirm, that I escaped the continue parameter correctly?

For then it looks to me as this seems to be an issue at Googles login.

解决方案

You are correctly escaping the Url, and yes, this is a well-known issue.

这篇关于使用OpenID登录时,如何在URL中跳过&符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆