(svn r2247) - Fix (regression): executing scripts now works (remove newline character(s)).

- Fix: getting help for an alias works
- Fix: '|' is an unprintable character, replace it with '\'
This commit is contained in:
Darkvater
2005-05-02 17:05:59 +00:00
parent ab0a6f2e73
commit 8f6b3154e5
2 changed files with 30 additions and 8 deletions

View File

@@ -1023,6 +1023,7 @@ void IConsoleCmdExec(const char *cmdstr)
for (cmdptr = cmdstr; *cmdptr != '\0'; *cmdptr++) {
if (!IsValidAsciiChar(*cmdptr)) {
IConsoleError("command contains malformed characters, aborting");
IConsolePrintF(_iconsole_color_error, "ERROR: command was: '%s'", cmdstr);
return;
}
}