Changeset 1113619
- Timestamp:
- 03/16/2015 03:43:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
webpurifytextreplace/trunk/WebPurifyTextReplace-options.php
r1043856 r1113619 63 63 64 64 if ( !empty( $ar ) ) { 65 $update_comment = 'UPDATE ' . $table_name . ' SET comment_content = \'' . mysql_ escape_string( $ar ) . '\' where comment_ID = ' . (int)$commentID;65 $update_comment = 'UPDATE ' . $table_name . ' SET comment_content = \'' . mysql_real_escape_string( $ar ) . '\' where comment_ID = ' . (int)$commentID; 66 66 $results = $wpdb->query( $update_comment ); 67 67 } … … 83 83 84 84 if ( !empty( $ar ) ) { 85 $update_post = 'UPDATE ' . $table_name . ' SET post_content = \'' . mysql_ escape_string( $ar ) . '\' where ID = ' . (int)$postID;85 $update_post = 'UPDATE ' . $table_name . ' SET post_content = \'' . mysql_real_escape_string( $ar ) . '\' where ID = ' . (int)$postID; 86 86 $results = $wpdb->query( $update_post ); 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.