]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Refactor and fix edge cases in switch_split_user_domain
authorTravis Cross <tc@traviscross.com>
Sun, 2 Mar 2014 09:13:05 +0000 (09:13 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 2 Mar 2014 09:29:23 +0000 (09:29 +0000)
commit1060a188cef89b3458850522394033ac3cde07e9
tree47e1373291c0b346b8a26a90c7d4cb72e5817ec0
parent2dcac7d350a147509528b1bbb421a7e33eb2c487
Refactor and fix edge cases in switch_split_user_domain

We were incorrectly parsing usernames and domains starting with "sip"
if there was no sip: or sips: scheme in the string.

We were also incorrectly parsing usernames containing a colon even if
a scheme was given.

This also refactors the function for hopefully greater clarity.
src/switch_utils.c