Changeset 670829
- Timestamp:
- 02/20/2013 05:26:56 PM (13 years ago)
- File:
-
- 1 edited
-
notifysnack/trunk/notifysnack.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
notifysnack/trunk/notifysnack.php
r666387 r670829 131 131 if( wp_verify_nonce( $_REQUEST[$this->namespace . '_update_wpnonce'], $this->namespace . '_options' ) ) { 132 132 $data = array(); 133 133 134 foreach( $_POST as $key => $val ) { 134 $data[$key] = $this->sanitize_ script( $val );135 $data[$key] = $this->sanitize_notifyscript( $val ); 135 136 } 136 137 … … 241 242 } 242 243 243 private function sanitize_ script( $str="" ) {244 private function sanitize_notifyscript( $str="" ) { 244 245 if ( !function_exists( 'wp_kses' ) ) { 245 require_once( ABSPATH . 'wp-includes/kses.php' ); 246 } 246 require_once( ABSPATH . 'wp-includes/kses.php' ); 247 } 248 247 249 global $allowedposttags; 248 250 global $allowedprotocols; … … 250 252 if ( is_string( $str ) ) { 251 253 $str = htmlentities( stripslashes( $str ), ENT_QUOTES, 'UTF-8' ); 252 } 253 254 $str = wp_kses( $str, $allowedposttags, $allowedprotocols ); 255 254 $str = wp_kses( $str, $allowedposttags, $allowedprotocols ); 255 } 256 256 257 return $str; 257 258 }
Note: See TracChangeset
for help on using the changeset viewer.