view framework/bin/webmcp_shell @ 142:a686ed2ce967
Protect json.import(...) against Lua stack overflows (or integer overflows) due to too many nested levels
 | author | jbe | 
 | date | Wed Jul 30 02:01:24 2014 +0200 (2014-07-30) | 
 | parents | 9fdfb27f8e67 | 
 | children |  | 
 
 line source
     2 export WEBMCP_APP_BASEPATH="`pwd`"
 
     3 export WEBMCP_CONFIG_NAME="$1"
 
     4 export WEBMCP_INTERACTIVE="yes"
 
     5 if [ "$WEBMCP_CONFIG_NAME" = "" ]; then
 
     6   echo "Error: No config name given." > /dev/stderr
 
     9 cd "`dirname "$0"`/../cgi-bin"
 
    10 exec lua -i webmcp.lua