Prevent the lobby gamelist from breaking entirely if a gamestanza contains an empty...
commitc134d7c01777e9f1376022bb30a633f590d551be
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 27 May 2018 13:47:18 +0000 (27 13:47 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Sun, 27 May 2018 13:47:18 +0000 (27 13:47 +0000)
tree073e1ad5c9464e7444161f91b07e078618956c14
parentc08f6122ba31f2d81783997e11e3a1f7b0c2ff67
Prevent the lobby gamelist from breaking entirely if a gamestanza contains an empty or invalid mod version JSON string (refs rP21301).

Catch all JSON SyntaxError exceptions in JS (refs rP18534).
The C++ ParseJSON function already catches exceptions and the resulting errors can't trigger a denial of service.

Differential Revision: https://code.wildfiregames.com/D1479
Based on patch by: Imarok
Reviewed by: Imarok
Comments By: Itms

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21827 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/gui/common/functions_utility.js
binaries/data/mods/public/gui/lobby/lobby.js