forked from mirror/OpenTTD
(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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user