HttpGadgetContext.getUserPrefs() doesn't decode German umlaute correctly
------------------------------------------------------------------------

                 Key: SHINDIG-482
                 URL: https://issues.apache.org/jira/browse/SHINDIG-482
             Project: Shindig
          Issue Type: Bug
         Environment: any
            Reporter: christof kaleschke


When the user prefs contain values with German umlaute (like ä, ü, ö) they 
aren't decoded correctly in the HttpGadgetContext.getUserPrefs() method. 

It seems that it is assumed (later in the JavaScript that is returned to the 
browser)  that these user prefs are encoded with encodeURIComponent() and the 
sample container encodes the user prefs with encodeURIComponent in the method 
gadgets.IfrGadget.prototype.getUserPrefsParams(). I tried to simply change the 
.getUserPrefsParams() method to use escape() but then I get JavaScript errors 
later on when I call var prefs = new gadgets.Prefs(); in the gadget.

In my opinion it would be enough to encode those user prefs with escape().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to