mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Don't print the CR-NL combination when we aren't outputting to the manager.
An embedded CR-NL in a CLI command screws up several AMI parsers that don't expect to see that combination in the middle of output. (Closes issue #14305) Reported by: martins Patch by: tilghman git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@177786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3660,7 +3660,7 @@ static int show_dialplan_helper(int fd, const char *context, const char *exten,
|
|||||||
|
|
||||||
/* if we print something in context, make an empty line */
|
/* if we print something in context, make an empty line */
|
||||||
if (context_info_printed)
|
if (context_info_printed)
|
||||||
ast_cli(fd, "\r\n");
|
ast_cli(fd, "\n");
|
||||||
}
|
}
|
||||||
ast_unlock_contexts();
|
ast_unlock_contexts();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user