Created
October 30, 2013 19:51
-
-
Save cloudrck/7239051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -urN _RAIDiator-x86-4.2.23.extracted/root/frontview/lib/np_handler.pl _RAIDiator-x86-4.2.24.extracted/root/frontview/lib/np_handler.pl | |
--- _RAIDiator-x86-4.2.23.extracted/root/frontview/lib/np_handler.pl 2013-05-02 12:00:27.000000000 -0500 | |
+++ _RAIDiator-x86-4.2.24.extracted/root/frontview/lib/np_handler.pl 2013-07-01 20:42:22.000000000 -0500 | |
@@ -42,6 +42,8 @@ | |
my $eval_string; | |
+ my $ret_payload; | |
+ my $ret_val; | |
for( $CURRENTPAGE ) | |
{ | |
@@ -50,7 +52,25 @@ | |
if ( $operation eq "get" ) | |
{ | |
my $section = $in{SECTION}; | |
- $eval_string = "\$fv->Security_get_state_xml($section)"; | |
+ if( $section ne "ALL" && | |
+ $section ne "ADDONS" && | |
+ $section ne "CHECK_FOR_NEWER_IMAGE" && | |
+ $section ne "CHECK_REGISTRATION_STATUS" && | |
+ $section ne "DIALOG_MODE" && | |
+ $section ne "LANGUAGE" && | |
+ $section ne "MODEL" && | |
+ $section ne "NETWORK" && | |
+ $section ne "PRINTER" && | |
+ $section ne "PROTOCOLS" && | |
+ $section ne "SECURITY" && | |
+ $section ne "SERVICES" && | |
+ $section ne "STATUS" && | |
+ $section ne "SYSTEM" && | |
+ $section ne "VOLUME" ) | |
+ { | |
+ $section = ""; | |
+ } | |
+ $ret_payload = $fv->Security_get_state_xml($section); | |
} | |
}; | |
@@ -60,14 +80,14 @@ | |
{ | |
if( $outer_tab eq 'tab_password_recovery' ) | |
{ | |
- $eval_string = "\$fv->PasswordRecovery_show_password_recovery_xml()"; | |
+ $ret_payload = $fv->PasswordRecovery_show_password_recovery_xml(); | |
} | |
} | |
elsif( $operation eq 'set' ) | |
{ | |
if( $outer_tab eq 'tab_password_recovery' ) | |
{ | |
- $eval_string = "\$fv->PasswordRecovery_process_form()"; | |
+ $ret_payload = $fv->PasswordRecovery_process_form(); | |
} | |
} | |
}; | |
@@ -80,7 +100,7 @@ | |
{ | |
if( $outer_tab eq 'tab_myshares' ) | |
{ | |
- $eval_string = "\$fv->UserPage_show_xml(\"$user\", \"$addr\")"; | |
+ $ret_payload = $fv->UserPage_show_xml("$user", "$addr"); | |
} | |
} | |
elsif( $operation eq 'set' ) | |
@@ -89,18 +109,12 @@ | |
{ | |
my $current_password = $in{current_password}; | |
my $password = $in{password}; | |
- | |
- $eval_string = "\$fv->User_change_password_process_form(\'$user\', \'$current_password\', \'$password\')"; | |
+ $ret_payload = $fv->User_change_password_process_form("$user", "$current_password", "$password"); | |
} | |
} | |
}; | |
} | |
- #$xml_main .= eval($eval_string); | |
- my $ret_payload = eval($eval_string); | |
- my $ret_val; | |
- | |
- | |
# Error handling - to process any errors from eval | |
if( $@ ) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment