js.on_exit() crashes BBS when called under webserver
js.on_exit() crashes BBS when called under webserver
test script (name 004-test.xjs and place in /sbbs/wev4/pages:
<!-- Test -->
<?xjs
function myfunc() {
log(LOG_NOTICE, "Hello from myfunc()");
}
js.on_exit("myfunc()");
js.on_exit("log(LOG_NOTICE, 'exiting')");
?>