[asterisk-bugs] [Asterisk 0014942]: New function to escape any character in a string

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 20 19:37:06 CDT 2009


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=14942 
====================================================================== 
Reported By:                ajohnson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14942
Category:                   Functions/func_strings
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.0.6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-04-20 15:46 CDT
Last Modified:              2009-04-20 19:37 CDT
====================================================================== 
Summary:                    New function to escape any character in a string
Description: 
I was having issues with ODBC functions in Asterisk.  Asterisk was
interperating a comma as a delimiter, even if it was contained in a
variable that I was passing as a value to the function.  This may be
correct, but I needed a function to escape commas inside of variables I was
passing to an ODBC function.

The new function's name is ESCAPE(<escape-chars>|<string>).  It will
escape every instance of the characters specified inside of the given
string.

I am not a C programmer and I apologize for not uploading this as a diff
against trunk.
====================================================================== 

---------------------------------------------------------------------- 
 (0103513) tilghman (administrator) - 2009-04-20 19:37
 http://bugs.digium.com/view.php?id=14942#c103513 
---------------------------------------------------------------------- 
Simpler workaround possible in 1.6. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-20 19:37 tilghman       Note Added: 0103513                          
2009-04-20 19:37 tilghman       Status                   new => closed       
2009-04-20 19:37 tilghman       Resolution               open => no change
required
======================================================================




More information about the asterisk-bugs mailing list