Fix for calling defined methods
This commit is contained in:
parent
b45c623bc6
commit
a713113df3
@ -75,11 +75,6 @@ function Frame() {
|
||||
|
||||
this.frame_fields = []; // If a response frame, the embedded fields in the frame
|
||||
|
||||
// The RAW frame content
|
||||
this.raw=function() {
|
||||
return base64_decode(this.content).replace(/(\r\n|\n|\r)/gm,'');
|
||||
};
|
||||
|
||||
// Render the frame to the user
|
||||
this.render=function(withHeader) {
|
||||
owner = base64_decode(this.owner);
|
||||
|
8
main.js
8
main.js
@ -584,15 +584,15 @@ while(bbs.online) {
|
||||
// External Frame
|
||||
// @todo returning from the frame, go to the 0 key if it is set
|
||||
case FRAME_TYPE_EXTERNAL:
|
||||
log(LOG_DEBUG,'- ACTION_GOTO: EXTERNAL ['+JSON.stringify(fo.raw())+']');
|
||||
log(LOG_DEBUG,'- ACTION_GOTO: EXTERNAL ['+JSON.stringify(fo.content)+']');
|
||||
|
||||
switch(fo.raw()) {
|
||||
switch(fo.content.replace(/\n/,'')) {
|
||||
case 'bbs.user_config()':
|
||||
case 'bbs.read_mail(MAIL_YOUR)':
|
||||
case 'bbs.scan_subs(SCAN_NEW)':
|
||||
case 'bbs.scan_posts()':
|
||||
case 'bbs.post_msg()':
|
||||
eval(fo.raw());
|
||||
eval(fo.content);
|
||||
|
||||
// Check and see if our shell was changed
|
||||
if (user.command_shell != 'ansitex') {
|
||||
@ -603,7 +603,7 @@ while(bbs.online) {
|
||||
break;
|
||||
|
||||
default:
|
||||
console.putmsg(JSON.stringify(fo.raw()));
|
||||
console.putmsg(JSON.stringify(fo.content));
|
||||
sendBaseline(ERR_ROUTE,false);
|
||||
action = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user