Use spaces as a separator for the redirect option to improve readability

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2006-12-24 21:01:02 +00:00
parent 539514d793
commit 850dd4ea61
2 changed files with 6 additions and 3 deletions

View File

@@ -817,7 +817,10 @@ static void add_redirect(const char *value)
unsigned int total_len;
dest = ast_strdupa(value);
target = strsep(&dest, "=");
dest = ast_skip_blanks(dest);
target = strsep(&dest, " ");
target = ast_skip_blanks(target);
target = strsep(&target, " "); /* trim trailing whitespace */
if (!dest) {
ast_log(LOG_WARNING, "Invalid redirect '%s'\n", value);