We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773ee3b commit 97888a3Copy full SHA for 97888a3
scripting/lua_utils.cpp
@@ -359,13 +359,13 @@ static int gen_inputbox (lua_State *L, T & msg)
359
} // validate function there
360
361
} // table of extra stuff there
362
+
363
+ if (strlen (inputmsg) > 1000)
364
+ luaL_error (L, "inputbox message too long (max 1000 characters)");
365
366
// if we leave in & it will make the next letter underlined
367
string sInputMsg = FindAndReplace (inputmsg, "&", "&&");
368
- if (sInputMsg.length () > 1000)
- luaL_error (L, "inputbox message too long (max 1000 characters)");
-
369
if (strlen (inputtitle) > 100)
370
luaL_error (L, "inputbox title too long (max 100 characters)");
371
0 commit comments