Make WordPress Core

Changeset 3828


Ignore:
Timestamp:
06/01/2006 09:47:50 PM (20 years ago)
Author:
ryan
Message:

Comment redirect fix from mdawaffe. fixes #2764

Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/post.php

    r3826 r3828  
    323323case 'editedcomment':
    324324
    325     $comment_id = (int) $_POST['comment_ID'];
    326     check_admin_referer('update-comment_' . $comment_id);
     325    $comment_ID = (int) $_POST['comment_ID'];
     326    $comment_post_ID = (int)  $_POST['comment_post_ID'];
     327
     328    check_admin_referer('update-comment_' . $comment_ID);
    327329
    328330    edit_comment();
  • branches/2.0/wp-includes/pluggable-functions.php

    r3817 r3828  
    244244            $html .= "\t<form method='post' action='$pagenow'>\n";
    245245            foreach ( (array) $q as $a ) {
    246                 $v = substr(strstr($a, '='), 1);
    247                 $k = substr($a, 0, -(strlen($v)+1));
     246                list($k, $v) = explode('=', $a, 2);
    248247                $html .= "\t\t<input type='hidden' name='" . wp_specialchars( urldecode($k), 1 ) . "' value='" . wp_specialchars( urldecode($v), 1 ) . "' />\n";
    249248            }
Note: See TracChangeset for help on using the changeset viewer.