Open for Voting

URL-Encode variables in action

To create a new entry in our ticket system we're using a simple GET-Request containing all the relevant data (node name, unique alert id, ...). But sometimes this request fails due to specials chars in some of the user defined fields, therefor we require to mask this characters with url/percent encoding (Percent-encoding - Wikipedia). We could build our own SQL query masking all the chars, but that would be an ugly and incomplete solution.

I thought of something like this (simple example):

"http://192.0.2.1/createTicket.aspx?title=${NodeName;O=urlencode}%20is%20${status;O=urlencode}"

The static content does not need any conversion :-)

(As requestetd the case number: #1126210)