Changeset 3627 for branches/1.5/wp-admin
- Timestamp:
- 03/07/06 01:47:45 (3 years ago)
- Files:
-
- branches/1.5/wp-admin/admin.php (modified) (1 diff)
- branches/1.5/wp-admin/post.php (modified) (6 diffs)
- branches/1.5/wp-admin/profile.php (modified) (1 diff)
- branches/1.5/wp-admin/user-edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.5/wp-admin/admin.php
r2592 r3627 56 56 57 57 if (! file_exists(ABSPATH . "wp-content/plugins/$plugin_page")) 58 die(sprintf(__('Cannot load %s.'), $plugin_page));58 die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page))); 59 59 60 60 if (! isset($_GET['noheader'])) branches/1.5/wp-admin/post.php
r2780 r3627 30 30 switch($action) { 31 31 case 'post': 32 32 check_admin_referer(); 33 33 if ( !user_can_create_draft($user_ID) ) 34 34 die( __('You are not allowed to create posts or drafts on this blog.') ); … … 269 269 270 270 case 'editpost': 271 check_admin_referer(); 271 272 // die(var_dump('<pre>', $_POST)); 272 273 if (!isset($blog_ID)) { … … 496 497 497 498 case 'confirmdeletecomment': 498 499 check_admin_referer(); 499 500 require_once('./admin-header.php'); 500 501 … … 591 592 592 593 case 'mailapprovecomment': 593 594 check_admin_referer(); 594 595 $comment = (int) $_GET['comment']; 595 596 … … 611 612 612 613 case 'approvecomment': 613 614 check_admin_referer(); 614 615 $comment = (int) $_GET['comment']; 615 616 $p = (int) $_GET['p']; … … 640 641 641 642 case 'editedcomment': 642 643 check_admin_referer(); 643 644 $comment_ID = (int) $_POST['comment_ID']; 644 645 $comment_post_ID = (int) $_POST['comment_post_ID']; branches/1.5/wp-admin/profile.php
r2439 r3627 65 65 if ( $pass1 != $pass2 ) 66 66 die (__("<strong>ERROR</strong>: you typed two different passwords. Go back to correct that.")); 67 $newuser_pass = $ pass1;67 $newuser_pass = $wpdb->escape($pass1); 68 68 $updatepassword = "user_pass=MD5('$newuser_pass'), "; 69 69 wp_clearcookie(); 70 wp_setcookie($user_login, $ newuser_pass);70 wp_setcookie($user_login, $pass1); 71 71 } 72 72 branches/1.5/wp-admin/user-edit.php
r2489 r3627 24 24 switch ($action) { 25 25 case 'update': 26 27 check_admin_referer(); 26 28 27 29 get_currentuserinfo();
