]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 187381 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 9 Apr 2009 17:22:38 +0000 (17:22 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 9 Apr 2009 17:22:38 +0000 (17:22 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r187381 | tilghman | 2009-04-09 12:20:49 -0500 (Thu, 09 Apr 2009) | 4 lines

  Allow '/' in username portion of register; this is a regression.
  (closes issue #14668)
   Reported by: Netview
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@187388 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e6c1d4257a702f150be7541891db51afe78bb8f4..0e36de382edb150540c35a5dce769cf3aab3c4ae 100644 (file)
@@ -6546,7 +6546,7 @@ static int sip_register(const char *value, int lineno)
        expire = strchr(buf, '~');
        if (expire)
                *expire++ = '\0';
-       callback = strchr(buf, '/');
+       callback = strrchr(buf, '/');
        if (callback)
                *callback++ = '\0';
        if (ast_strlen_zero(callback))