mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Issue #7325 - Parse string after URI decoding (casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7325,11 +7325,12 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
|
||||
/* Find the request URI */
|
||||
if (req->rlPart2)
|
||||
ast_copy_string(tmp, req->rlPart2, sizeof(tmp));
|
||||
uri = get_in_brackets(tmp);
|
||||
|
||||
if (pedanticsipchecking)
|
||||
ast_uri_decode(tmp);
|
||||
|
||||
uri = get_in_brackets(tmp);
|
||||
|
||||
if (strncmp(uri, "sip:", 4)) {
|
||||
ast_log(LOG_WARNING, "Huh? Not a SIP header (%s)?\n", uri);
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user