X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/cc7b1505cd9fafd87c3672f669e13e98b0c544f7..022dfbbbe3215917d84708eb09acca93b21ae9e0:/wp-admin/edit-page-form.php diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index c9b7ef5b..b0e603e0 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -9,16 +9,19 @@ if (0 == $post_ID) { $temp_ID = -1 * time(); $form_extra = ""; } else { + $post_ID = (int) $post_ID; $form_action = 'editpost'; $nonce_action = 'update-post_' . $post_ID; $form_extra = ""; } -$sendto = wp_get_referer(); +$temp_ID = (int) $temp_ID; +$user_ID = (int) $user_ID; + +$sendto = attribute_escape(wp_get_referer()); if ( 0 != $post_ID && $sendto == get_permalink($post_ID) ) $sendto = 'redo'; -$sendto = wp_specialchars( $sendto ); ?> @@ -61,7 +64,7 @@ addLoadEvent(focusit);

-
+
@@ -86,7 +89,7 @@ addLoadEvent(focusit);

-
+
id ) ) : // TODO: ROLE SYSTEM ?> @@ -99,6 +102,8 @@ foreach ($authors as $o) : $o = get_userdata( $o->ID ); if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"'; else $selected = ''; +$o->ID = (int) $o->ID; +$o->display_name = wp_specialchars( $o->display_name ); echo ""; endforeach; ?> @@ -119,7 +124,7 @@ endforeach;
-
+
@@ -193,7 +198,7 @@ if (current_user_can('upload_files')) { $uploading_iframe_src = wp_nonce_url("inline-uploading.php?action=view&post=$uploading_iframe_ID", 'inlineuploading'); $uploading_iframe_src = apply_filters('uploading_iframe_src', $uploading_iframe_src); if ( false != $uploading_iframe_src ) - echo ''; + echo ''; } ?> @@ -224,8 +229,8 @@ if($metadata = has_meta($post_ID)) { $delete_nonce = wp_create_nonce( 'delete-page_' . $post_ID ); ?> post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> /> - - + +