mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 18:30:01 +00:00
Fix minor edge case in switch_split_user_domain
If the input started with 'sip:sips:' it would have been incorrectly parsed.
This commit is contained in:
parent
d5fd8c9fc2
commit
9b9bc8b796
@ -3110,7 +3110,7 @@ SWITCH_DECLARE(int) switch_split_user_domain(char *in, char **user, char **domai
|
||||
|
||||
/* Remove URL scheme */
|
||||
if (!strncasecmp(in, "sip:", 4)) in += 4;
|
||||
if (!strncasecmp(in, "sips:", 5)) in += 5;
|
||||
else if (!strncasecmp(in, "sips:", 5)) in += 5;
|
||||
|
||||
/* Isolate the host part from the user part */
|
||||
if ((h = in, p = strchr(h, '@'))) *p = '\0', u = in, h = p+1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user