[asterisk-bugs] [Asterisk 0014972]: FIELDQTY not function correctly with escape characters from variables.

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 27 09:29:11 CDT 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14972 
====================================================================== 
Reported By:                zktech
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   14972
Category:                   Functions/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0.7 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-04-25 09:30 CDT
Last Modified:              2009-04-27 09:29 CDT
====================================================================== 
Summary:                    FIELDQTY not function correctly with escape
characters from variables.
Description: 
I am using the FIELDQTY to dynamically parse headers and other strings.
When I pass in the delimeter in a variable it does not work correctly if
the variable has a escape character in it..

Example 1: ARG1 = header;data;data ARG2=\;
exten => s,n,Set(l_cnt=${FIELDQTY(ARG1,ARG2)})

This should and did in version 1.4 return 3 to l_cnt
In 1.6 it returns 1 to l_cnt

Example 2: ARG1 = header;data;data
exten => s,n,Set(l_cnt=${FIELDQTY(ARG1,\;)})

This returns 3 to l_cnt as expected. This is very broken as I can not now
send values with escape charcters to this function.

Does this bug also effect any other functions that use to allow escape
characters coming in variables?

Any help is apperciated.
Thanks
Bryant

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-27 09:29 lmadsen        Status                   feedback => assigned
2009-04-27 09:29 lmadsen        Assigned To               => tilghman        
======================================================================




More information about the asterisk-bugs mailing list