takusomikke / oauth-as3

Automatically exported from code.google.com/p/oauth-as3
0 stars 0 forks source link

Looks like recent UTF-8 encoding code is missing some backslashes - perhaps a copy/paste error ? #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In URLEncoding.as, I believe....

    string = string.replace(/rn/g,'n');
    string = string.replace(/r/g,'n');

... is supposed to be ...

    string = string.replace(/\r\n/g,'\n');
    string = string.replace(/\r/g,'\n');

This causes significant issues if you are encoding any string the has an 
'r' in it.

Original issue reported on code.google.com by robgabb...@gmail.com on 25 Sep 2009 at 5:46

GoogleCodeExporter commented 9 years ago
Same here, r13 broke tge encoding and the fix above works.

Original comment by soenke.r...@gmail.com on 28 Sep 2009 at 5:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by soenke.r...@gmail.com on 30 Dec 2009 at 9:27

GoogleCodeExporter commented 9 years ago
added supposed patch which works

Original comment by soenke.r...@gmail.com on 30 Dec 2009 at 9:29