PluginProbe
ShiftController Employee Shift Scheduling / 4.9.26
ShiftController Employee Shift Scheduling v4.9.26
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | hc3/post.php +3 -5 trunk4.9.26 View file →
@@ -11,12 +11,10 @@
11 11 public function get( $k = NULL )
12 12 {
13 13 if( ! empty($_POST) ){
14 14 $nonce = isset( $_REQUEST['hc_nonce'] ) ? $_REQUEST['hc_nonce'] : '';
15 - if( function_exists('wp_verify_nonce') ){
16 - if( ! wp_verify_nonce( $nonce, 'shiftcontroller' ) ){
17 - die( 'Security check failed' );
18 - }
15 + if( ! wp_verify_nonce( $nonce, 'shiftcontroller' ) ){
16 + die( 'Security check failed' );
19 17 }
20 18 }
21 19
22 20 $return = array();
@@ -60,9 +58,9 @@
60 58
61 59 protected function _cleanInputKeys( $str )
62 60 {
63 61 if ( ! preg_match("/^[a-z0-9:_\/\-\~]+$/i", $str)){
64 - exit('Disallowed Key Characters on: ' . '"' . esc_html($str) . '"' . '<br>');
62 + exit('Disallowed Key Characters on: ' . '"' . $str . '"' . '<br>');
65 63 }
66 64 return $str;
67 65 }
68 66