Fix l_request_insecure_environment not ignoring all whitespace (#4395)
authorDorian Wouters <elementw@openmailbox.org>
Wed, 3 Aug 2016 22:41:54 +0000 (00:41 +0200)
committerest31 <est31@users.noreply.github.com>
Wed, 3 Aug 2016 22:41:54 +0000 (00:41 +0200)
commitfca8e53842718f7f23e11587ae6235c072892b97
treef7849e065c4cbb8628ffcfff60c1ee37c9080f5b
parent4ec667190967591727294ebbca0a38259fc006c7
Fix l_request_insecure_environment not ignoring all whitespace (#4395)

l_request_insecure_environment didn't ignore all whitespace in the
secure.trusted_mods config option.

Replaces std::remove with std::remove_if and the isspace function.
src/script/lua_api/l_util.cpp