[Home]

Summary:ASTERISK-04736: [patch] Functions for url-encoding and decoding
Reporter:Olle Johansson (oej)Labels:
Date Opened:2005-07-30 08:36:24Date Closed:2008-01-15 15:46:03.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) func_uri.c
( 1) func_url.c
Description:This patch adds URLENCODE and URLDECODE functions, handy when using app_curl. The patch uses functions in patch ASTERISK-3833
Comments:By: Kevin P. Fleming (kpfleming) 2005-08-22 18:14:58

As I commented in ASTERISK-3893923, these functions work on URI strings, not just URL strings (and the file header refers to them that way). I think we should do things the 'right' way and name the functions using URI instead... comments?

By: Olle Johansson (oej) 2005-08-25 00:45:06

The function in chan_sip has historically had the name url_encode and I think it's commonly referred to as "URL encoding". Technically you are right, we do encode URI's and possibly also URN's.

By: Olle Johansson (oej) 2005-08-25 02:49:46

Uploaded func_uri.c - depends on patches in ASTERISK-3833 as before.

By: Kevin P. Fleming (kpfleming) 2005-08-29 18:53:52

Committed to CVS HEAD, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:46:03.000-0600

Repository: asterisk
Revision: 6442

A   trunk/funcs/func_uri.c

------------------------------------------------------------------------
r6442 | kpfleming | 2008-01-15 15:46:02 -0600 (Tue, 15 Jan 2008) | 2 lines

add dialplan functions for URI encoding/decoding (issue ASTERISK-4736)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6442