English 中文(简体)
双重编码的url在ASP中完全编码。 NET
原标题:Double encoded url being fully decoded in ASP.NET

我刚刚走过了很奇怪的事情,然而,我没有发现在问题相同的其他人的交网上有任何提及。

如果我打我的非洲伙伴关系。 然后,将使用双面编码的电网应用。 这样做是不可取的,因为出于良好原因,我把我的问话打上了一倍。

其他国家确认 我不想做明显错误的事情,为什么会发生这种情况。 如果不做一些新生的争 que,防止这种做法的解决方案也将是巨大的!

As an example if you hit the url: http://localhost/MyApp?originalUrl=http%3a%2f%2flocalhost%2fAction%2fRedirect%3fUrl%3d%252fsomeUrl%253futm_medium%253dabc%2526utm_source%253dabc%2526utm_campaign%253dabc

(参考%25为文号)

接着看<代码>Request[“originalUrl”](page or controller) ,所交回的舱位是:

http:// localhost/Action/Redirect?Url=/aboutUrl?utm_medium=abc&utm_source=abc&utm_campaign=abc”rel=“nofollow noreferer” http:// localhost/Action/Redirect?Url=/aboutUrl?utm_medium=abc&utm_source=abc&utm_campaign=abc

我期望:

我还在Fiddler进行了检查,URL正在被正确地送到服务器上(一种可能的主子可能是在寄出之前将URL脱钩的浏览器)。

最佳回答
问题回答

我认为,这要与你们的行凶有关。

查阅 页: 1

浏览器在哪里测试了这一结果?





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签