friendlyurlsuggest.js has a bug lead to Unrecognizable Code.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/15/2008 10:30:41 AM
Gravatar
Total Posts 59

friendlyurlsuggest.js has a bug lead to Unrecognizable Code.

Hi Joe

Below code in file friendlyurlsuggest.js:

///////////////////////////////////////////////////////////////////////////////////

UrlHelper.prototype.GetData = function(callback,urlHelper)
{
..
xmlhttp.open('GET', this.serviceUrl + '?pn=' + this.query, true);...
}

 

Should be:

UrlHelper.prototype.GetData = function(callback,urlHelper)
{
..
xmlhttp.open('GET', this.serviceUrl + '?pn=' + encodeURIComponent(this.query), true);

...
}

/////////////////////////////////////////////////////////////////////

If didn't add encodeURIComponent, Chinese word would be Unrecognizable Code when transtered to server.

e.g when I add a new page on PageSettings.aspx, if "Page Name"  set to  Chinese word,  "Use url" will be Unrecognizable Code. But after add encodeURIComponent, it's ok.

I think other code like this should add encodeURIComponent too.

-- no ascii in url all need be encodeURIComponented.

 

Thanks!


 

5/15/2008 11:08:55 AM
Gravatar
Total Posts 18439

Re: friendlyurlsuggest.js has a bug lead to Unrecognizable Code.

I will make the same change here.

Thanks!

Joe

You must sign in to post in the forums. This thread is closed to new posts.