Changeset 23554 for trunk/wp-admin/plugin-editor.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r23419 r23554 29 29 30 30 if ( isset($_REQUEST['file']) ) 31 $plugin = wp_unslash($_REQUEST['file']);31 $plugin = stripslashes($_REQUEST['file']); 32 32 33 33 if ( empty($plugin) ) { … … 40 40 if ( empty($file) ) 41 41 $file = $plugin_files[0]; 42 else 43 $file = stripslashes($file); 42 44 43 45 $file = validate_file_to_edit($file, $plugin_files); … … 51 53 check_admin_referer('edit-plugin_' . $file); 52 54 53 $newcontent = wp_unslash( $_POST['newcontent']);55 $newcontent = stripslashes($_POST['newcontent']); 54 56 if ( is_writeable($real_file) ) { 55 57 $f = fopen($real_file, 'w+');
Note: See TracChangeset
for help on using the changeset viewer.