[
https://issues.apache.org/jira/browse/TS-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leif Hedstrom updated TS-254:
-----------------------------
Description:
It would be very convenient for plugin developers to have SDK APIs that allows
for escaping and unescaping of strings. E.g.
TSEscapifyString("http://www.ogre.com/ogre.png")
-> http%3A%2F%2Fwww.ogre.com%2Fogre.png
TSUnescapifyString("http%3A%2F%2Fwww.ogre.com%2Fogre.png)
-> http://www.ogre.com/ogre.png
The "unescapify" string is fairly straight forward, but the "escapify" version
might benefit from taking an (optional) table which describes what characters
needs to be escaped (e.g. in in some cases you want a / to be escaped, but in
others you do not).
was:
It would be very convenient for plugin developers to have SDK APIs that allows
for escaping and unescaping of strings. E.g.
INKEscapifyString("http://www.ogre.com/ogre.png")
-> http%3A%2F%2Fwww.ogre.com%2Fogre.png
INKUnescapifyString("http%3A%2F%2Fwww.ogre.com%2Fogre.png)
-> http://www.ogre.com/ogre.png
The "unescapify" string is fairly straight forward, bt the "escapify" version
might benefit from taking an (optional) table which describes what characters
needs to be escaped (e.g. in in some cases you want a / to be escaped, but in
others you do not).
Summary: Add TSEscapifyString() and TSUnescapifyString() (was: Add
INKEscapifyString() and INKUnescapifyString() )
> Add TSEscapifyString() and TSUnescapifyString()
> ------------------------------------------------
>
> Key: TS-254
> URL: https://issues.apache.org/jira/browse/TS-254
> Project: Traffic Server
> Issue Type: New Feature
> Components: TS API
> Reporter: Leif Hedstrom
> Assignee: Leif Hedstrom
> Priority: Minor
> Fix For: 3.1.0
>
>
> It would be very convenient for plugin developers to have SDK APIs that
> allows for escaping and unescaping of strings. E.g.
> TSEscapifyString("http://www.ogre.com/ogre.png")
> -> http%3A%2F%2Fwww.ogre.com%2Fogre.png
> TSUnescapifyString("http%3A%2F%2Fwww.ogre.com%2Fogre.png)
> -> http://www.ogre.com/ogre.png
> The "unescapify" string is fairly straight forward, but the "escapify"
> version might benefit from taking an (optional) table which describes what
> characters needs to be escaped (e.g. in in some cases you want a / to be
> escaped, but in others you do not).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira