SCS-CBU-CED-IAM / mobileid-helper

Mobile ID Test Signature Portal
1 stars 1 forks source link

GET Encoding for the message seems not be proper with special characters #49

Closed FreddyKaiser closed 11 years ago

FreddyKaiser commented 11 years ago

When setting the it seems not working with all browsers / proxys:

NOT Ok with: public $mid_msg_de = "Sie erhalten eine Testmeldung von PostFinance. Bitte bestätigen Sie den Erhalt der Meldung.";

"GET /pf-helper/form.php?request={\"mid_phone\":\"0797118764\",\"mid_lang\":\"de\",\"mid_msg\":\"Sie%20erhalten%20eine%20Testmeldung%20von%20PostFinance.%20Bitte%20best\xe4tigen%20Sie%20den%20Erhalt%20der%20Meldung.\"}&lang=de HTTP/1.1" 400 5244 "https://cartel.ch/pf-helper/?lang=de" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)"

Normal characters seems ok:

"GET /pf-helper/form.php?request={\"mid_phone\":\"0797118764\",\"mid_lang\":\"fr\",\"mid_msg\":\"Authoriser%20le%20test%20de%20la%20Mobile%20ID?\"}&lang=fr HTTP/1.1" 401 6000 "https://cartel.ch/pf-helper/?lang=fr" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)"
michellotto commented 11 years ago

Header of the http request should be utf-8 encoded. It will intersting to have information about it on your proxy. Anyway, I've added en encoding fuction [encodeURlComponent()] for the message when sending it with the ajax request. Let me know.

FreddyKaiser commented 11 years ago

Tested and ok on Desktop with IE