From: Max Kanat-Alexander Date: Wed, 27 Oct 2010 07:49:35 +0000 (-0700) Subject: Bug 581933: Make YUI user autocomplete work with non-ASCII characters X-Git-Tag: bugzilla-4.0rc1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c2b69fca460d140308decd69ac11b71a3f6cdd0;p=thirdparty%2Fbugzilla.git Bug 581933: Make YUI user autocomplete work with non-ASCII characters r=Wurblzap, a=LpSolit --- diff --git a/js/field.js b/js/field.js index 18a8d3aa46..7a5ffd3aad 100644 --- a/js/field.js +++ b/js/field.js @@ -656,7 +656,7 @@ YAHOO.bugzilla.userAutocomplete = { method : "User.get", id : YAHOO.bugzilla.userAutocomplete.counter, params : [ { - match : [ unescape(enteredText) ], + match : [ decodeURIComponent(enteredText) ], include_fields : [ "email", "real_name" ] } ] }; @@ -667,7 +667,7 @@ YAHOO.bugzilla.userAutocomplete = { return stringified; }, resultListFormat : function(oResultData, enteredText, sResultMatch) { - return ( unescape(oResultData.real_name) + " (" + oResultData.email + ")"); + return ( oResultData.real_name + " (" + oResultData.email + ")"); }, debug_helper : function ( ){ /* used to help debug any errors that might happen */