diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-13 09:41:43 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-13 09:41:43 +0000 |
commit | 9a6e6a6b16c5e0333b9328a93e845f99041e8c19 (patch) | |
tree | b71f7e25af7553661ce8992f1f8f652f45439e89 /main | |
parent | 9e5f61485cebe029969e78b1e38952bd9d133de0 (diff) |
Trim leading/trailing spaces from the filename, to deal with common user error.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@234458 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 18a1a480e..484302268 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -9148,7 +9148,7 @@ static int pbx_builtin_background(struct ast_channel *chan, const char *data) } if (!res) { - char *back = args.filename; + char *back = ast_strip(args.filename); char *front; ast_stopstream(chan); /* Stop anything playing */ |