ajmyers / Sublime-TM1

Sublime-TM1 is a Sublime Text 4 add-in that assists TM1 / Planning Analytics developers
GNU General Public License v3.0
13 stars 3 forks source link

API URLs should probably be formatted using url-encoded strings. #1

Closed mattbasta closed 7 years ago

mattbasta commented 7 years ago

When constructing URLs (like this), the formatted values should probably be URL encoded. If a string contains, say, a question mark, it will create an invalid URL.

Python 3 urlencode(): https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode

Python 2 urlencode(): https://docs.python.org/2/library/urllib.html#urllib.urlencode

ajmyers commented 7 years ago

This came from the TM1py library which I bundled in for dealing with Sublime Text quirkiness. I was able to unbundle it though. Thanks!