Handle blank prefix= in http.conf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@112033 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
feb7712320
commit
4bb7658005
1 changed files with 2 additions and 2 deletions
|
@ -683,8 +683,8 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
/* We want requests to start with the prefix and '/' */
|
||||
if ((l = strlen(prefix)) && !strncasecmp(uri, prefix, l) && uri[l] == '/') {
|
||||
/* We want requests to start with the (optional) prefix and '/' */
|
||||
if (((l = strlen(prefix)) || !*prefix) && !strncasecmp(uri, prefix, l) && uri[l] == '/') {
|
||||
uri += l + 1;
|
||||
/* scan registered uris to see if we match one. */
|
||||
AST_RWLIST_RDLOCK(&uris);
|
||||
|
|
Reference in a new issue