@@ -52,9 +52,9 @@ private function __construct()
5252 require_once ($ this ->internal ['plugin_path ' ].'plugin/includes/default_internal_vars.php ' );
5353 require_once ($ this ->internal ['plugin_path ' ].'plugin/includes/hardcoded_vars.php ' );
5454
55- if (isset ($ _REQUEST [$ this ->internal ['prefix ' ].'action ' ]))
55+ if (isset ($ _REQUEST [$ this ->internal ['prefix ' ].'action ' ] ))
5656 {
57- $ this ->internal ['requested_action ' ] = $ _REQUEST [$ this ->internal ['prefix ' ].'action ' ];
57+ $ this ->internal ['requested_action ' ] = filter_var ( $ _REQUEST [$ this ->internal ['prefix ' ].'action ' ], FILTER_SANITIZE_STRING ) ;
5858 }
5959 else
6060 {
@@ -685,7 +685,7 @@ public function do_admin_page_tabs_c()
685685
686686 if (isset ($ _REQUEST [$ this ->internal ['prefix ' ].'tab ' ]))
687687 {
688- $ tab= $ _REQUEST [$ this ->internal ['prefix ' ].'tab ' ];
688+ $ tab = filter_var ( $ _REQUEST [$ this ->internal ['prefix ' ].'tab ' ], FILTER_SANITIZE_STRING ) ;
689689 }
690690
691691 if (!isset ($ tab ))
@@ -805,7 +805,7 @@ public function do_settings_pages_c($v1)
805805
806806 if (isset ($ _REQUEST [$ this ->internal ['prefix ' ] . 'tab ' ]))
807807 {
808- $ tab = sanitize_text_field ( $ _REQUEST [$ this ->internal ['prefix ' ].'tab ' ]);
808+ $ tab = filter_var ( $ _REQUEST [$ this ->internal ['prefix ' ].'tab ' ], FILTER_SANITIZE_STRING );
809809 }
810810 else
811811 {
@@ -854,7 +854,7 @@ public function do_admin_settings_form_header_c()
854854
855855 if (isset ($ _REQUEST [$ this ->internal ['prefix ' ] . 'tab ' ]))
856856 {
857- $ tab = sanitize_text_field ( $ _REQUEST [$ this ->internal ['prefix ' ] . 'tab ' ] );
857+ $ tab = filter_var ( $ _REQUEST [$ this ->internal ['prefix ' ] . 'tab ' ], FILTER_SANITIZE_STRING );
858858
859859 }
860860 else
@@ -883,7 +883,7 @@ public function do_admin_settings_form_footer_c()
883883
884884 if (isset ($ _REQUEST ['tab ' ]))
885885 {
886- $ tab= $ _REQUEST ['tab ' ];
886+ $ tab = filter_var ( $ _REQUEST ['tab ' ], FILTER_SANITIZE_STRING ) ;
887887
888888 }
889889 else
0 commit comments