summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-12-13 09:41:43 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-12-13 09:41:43 +0000
commitd32c333f7c00f39ebe92e5b2dfc0feb325ffd376 (patch)
treeb71f7e25af7553661ce8992f1f8f652f45439e89 /main
parent2923086dafb971d603c27a0fd9eea235d4b88f52 (diff)
Trim leading/trailing spaces from the filename, to deal with common user error.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@234458 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c2
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 */