网址中的奇怪字符 [英] strange characters in url

查看:79
本文介绍了网址中的奇怪字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的网络应用程序中有一个奇怪的行为。

假设我有这个重定向到产品页面的URL来显示项目:

http://abc.com/page.aspx?cId=c-017&cname=Remote%20Start%20and%20Security&SubId=RemoteStartNSecurity4&SubName=Remote%20Starters [ ^ ]



有时此网址会更改为以下网址并添加这些字符('A = 0)

http://www.abc.com/page.aspx?cId=c-017&cname=Remote Start and Security& SubId = RemoteStartNSecurity4'A = 0& SubName = Remote入门



当然从产品p中得到错误年龄。

有谁知道网址添加这些字符的原因或者为什么会改变?



谢谢

Samira

Hi all,
I have a strange behavior in my web app.
Let's say I have this URL which redirect to products page to display items:
http://abc.com/page.aspx?cId=c-017&cname=Remote%20Start%20and%20Security&SubId=RemoteStartNSecurity4&SubName=Remote%20Starters[^]

Sometimes this URL changes to the below one and adding these characters ('A=0 )
http://www.abc.com/page.aspx?cId=c-017&cname=Remote Start and Security&SubId=RemoteStartNSecurity4'A=0&SubName=Remote Starters

And of course get an error from products page.
Does anyone know the reason why the URL is adding these characters or why it's changing?

Thank you
Samira

推荐答案

在第二个网址中,就在 A = 0 之前,只有一个引号。它很可能完全阻止了网址的编码。我会查看单引号的添加位置和原因。



祝你好运!
In the second url, just before A=0 there is a single quote. It most likely is preventing encoding of the url completely. I would check out where and why the single quote is added.

Good luck!


这篇关于网址中的奇怪字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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