Eliot Gable
713303a2a9
Add case-insensitive search to switch_regex_match() based on code from switch_regex_perform().
2013-12-18 16:19:58 +00:00
Ken Rice
c2c8fba14a
--resolve FS-5566
...
When you use $12345 in regex substitutions, it isn't obvious
whenever you mean $1-concatenated-2345 or $12-concatenated-345
or any other variation. In all other languages, in order to
solve this ambiguity, a braces {} are allowed to be used to
separate variable name (or a reference) from surrounding text,
like ${1}2345 or ${12}345. Use the same for freeswitch too.
While at it, fix a buffer overflow as well: the index[] variable
which is used to copy the "variable" name is 10 chars long, but
it is used in the code without bounds checking, so a reference
which is >9 chars long ($1234567890) will overflow the buffer,
crashing freeswitch.
And another overflow is in the way how size of the "substituted"
variable is handled. First, in the outer loop, we compare the
wrong variable with the size of `substituted' buffer (amount of
bytes we took from the source instead of amount of bytes we
used in `substituted'). And second, when actual regex match
is being substitured, amount of room in `substituted' variable
is not checked at all.
Patch contributed by Michael Tokarev <mjt@tls.msk.ru>
2013-07-01 17:05:07 -05:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Ken Rice
c5554eb939
Copyright date update.
2012-04-18 11:52:02 -05:00
Anthony Minessale
7333d46d5b
add new chatplan concept and mod_sms. Apps for chat messages: copy new base freeswitch.xml and chatplan dir if you are upgrading on existing config base
2011-09-21 14:31:18 -05:00
Jeff Lenk
14ef54cd4e
FS-3315 Fix this differently convert to cdecl so SWIG likes
2011-06-01 10:48:42 -05:00
Anthony Minessale
860d2a6c12
add capture dp app
2011-05-25 16:12:42 -05:00
Anthony Minessale
c1c759526d
add arrays to event headers and chanvars
2011-05-25 15:42:36 -05:00
Brian West
3734f4cd44
bump copyright date and fix some email and typos from diego.
2011-01-05 10:09:04 -06:00
Anthony Minessale
b4548a606e
FSCORE-677
2010-09-23 13:33:33 -05:00
Anthony Minessale
886e1ddb4d
run indent on the whole tree and update copyright dates in prep for 1.0.5
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Mathieu Rene
6f40722c17
make switch_regex_match() work with grouping
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16555 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-02 19:02:37 +00:00
Anthony Minessale
3aa064fae8
nm
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16397 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-18 22:17:58 +00:00
Anthony Minessale
94d69ee290
fix regex handeler in pip sep list with multiple capture so $1 is right
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16389 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-18 19:01:56 +00:00
Brian West
e7521ed0a2
no comment.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14105 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-02 01:36:50 +00:00
Anthony Minessale
3c6b98d00f
accept asterisk N/X/Z/. notation everywhere regexes are expected when they start with _
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13287 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-05-12 17:10:57 +00:00
Brian West
babb2f83f5
update copyright
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12004 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 23:37:37 +00:00
Brian West
ae220d3341
update email
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11643 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 21:20:54 +00:00
Michael Jerris
870a3ef8ff
(FSCORE-192) expose api for partial regex matching
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9623 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-23 16:05:12 +00:00
Brian West
edc3f6509c
getting rid of c++ comments in c files... OCD at work
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9403 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-02 10:46:44 +00:00
Michael Jerris
64997c4d8e
vim extendtab is bad
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8894 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-03 19:12:26 +00:00
Anthony Minessale
3c349c274e
indent pass 1
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8686 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 04:30:03 +00:00
Michael Jerris
085088f35e
add bounds checks. Found by Klockwork (www.klocwork.com)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8476 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-19 21:33:52 +00:00
Brian West
b0ad7ab50c
set tab mode properly
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7500 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-03 22:14:57 +00:00
Brian West
84161010ab
cleanup and consistency.. blah rain @ PHX fun
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7396 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 20:01:02 +00:00
Brian West
935cbcf937
more cleanup before I leave LAX
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7394 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-27 17:42:51 +00:00
Anthony Minessale
6e1c32e099
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7301 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-01-19 21:54:11 +00:00
Brian West
901c41295e
this wasn't right wrap in paren to get in multi pipe sep regexp.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6620 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-11 03:28:35 +00:00
Brian West
f481f79daa
fix offset in regex expansion
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6588 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-12-10 16:27:48 +00:00
Anthony Minessale
1402e4a04b
better globbing
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6256 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-14 19:25:28 +00:00
Anthony Minessale
013096b853
update
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6255 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-14 15:16:03 +00:00
Anthony Minessale
c5e0348f63
add opts to regex
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6254 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-14 14:18:24 +00:00
Michael Jerris
3f4fd53c97
fix windows build.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6218 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-11-10 12:25:54 +00:00
Michael Jerris
a4ff7e88da
adding const qualifiers across the api as appropriate.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5165 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-05-12 14:48:14 +00:00
Anthony Minessale
c15d7892c0
indent again
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4799 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:15:25 +00:00
Anthony Minessale
debdfb1aab
indent
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-30 00:13:31 +00:00
Anthony Minessale
3a54126261
spring cleaning
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-29 22:31:56 +00:00
Michael Jerris
42e78242a3
add wrapper code to fully encapsulate apr, apr-utils, pcre, and sqlite. fully use switch_ namespace in modules, create our own format and type defines. follow up commit for unix autotools coming soon after this. PLEASE NOTE: you will NEED to do a make megaclean and run configure again after this update (and the following commit) or it will not build.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4494 d0543943-73ff-0310-b7d9-9358b9ac24b2
2007-03-09 20:44:13 +00:00