sebbASF opened a new issue #207:
URL: https://github.com/apache/incubator-ponymail-foal/issues/207


   The ponymail.js script creates URIs to obtain data from the backend.
   These URLs need to be correctly encoded to ensure the backend sees the 
correct data.
   The script also needs to parse information from various URIs presented to it.
   
   For example, parse_permalink has to convert from a URI of the form:
   
   /thread/<msgid>?listid
   to 
   /api/thread.lua?id=msgid&listid=listid
   
   The msgid appears as part of the path, however it is treated as a single 
element, so I think in needs to be decoded using decodeURIComponent. 
   
   Similarly for the listid portion of the query. To allow for the possibility 
that space was encoded as '+', that first needs to be converted to space, as 
decodeURIComponent does not perform that conversion.
   
   After any further transformations, they both then need to be encoded as 
query elements.
   
   Similar considerations apply anywhere else that URIs are consumed or 
generated.
   
   Normal list ids are unlikely to ever include characters that need encoding, 
but the code should be consistent
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@ponymail.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to