hugoloza / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Email resistant TokenFormatter alternative #381

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As discussed at: 
http://groups.google.com/group/gwt-platform/browse_thread/thread/a67ec8de9ccc6d0
a/b86c55a575cbcde6

Commom GWTP URL are like: 
http://mysite.com/project.html#nametoken;param1=value1;param2=value2 

Since RFC 2396 says that the characters ; and = must be URL escaped, some email 
clients (MUAs) reencode the above URL as:

http://mysite.com/project.html#nametoken%3bparam1%3dvalue1%3bparam2%3dvalue2 

The above URL doesn't work since GWTP uses URL-encoding to espace the param and 
value strings themselves, and will only decode the URL after processing the ; 
and =, that, in the above case, was lost.

Original issue reported on code.google.com by d...@cloud3.tc on 21 Nov 2011 at 12:34

GoogleCodeExporter commented 9 years ago
See discussion on thread.

Original comment by philippe.beaudoin on 24 Nov 2011 at 1:37

GoogleCodeExporter commented 9 years ago
First version for the new token formatter.

Original comment by d...@cloud3.tc on 30 Nov 2011 at 1:23

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, please ignore this one.

Original comment by d...@cloud3.tc on 30 Nov 2011 at 1:31

GoogleCodeExporter commented 9 years ago
Second version.

Original comment by d...@cloud3.tc on 30 Nov 2011 at 1:32

Attachments:

GoogleCodeExporter commented 9 years ago
Second version.

Original comment by d...@cloud3.tc on 30 Nov 2011 at 1:32

Attachments:

GoogleCodeExporter commented 9 years ago
Finally landed in r8f1a492062c9
Thanks for the fix!

Original comment by philippe.beaudoin on 1 Feb 2012 at 1:37

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 1 Feb 2012 at 6:47