escape pagenow. Props xknown. fixes #3988 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@5059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-18 23:04:22 +00:00
parent 611b037efa
commit 1e60e0df9a
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if (!isset($_GET["page"])) require_once('admin.php');
if ( $editing ) {
wp_enqueue_script( array("dbx-admin-key?pagenow=$pagenow",'admin-custom-fields') );
wp_enqueue_script( array('dbx-admin-key?pagenow=' . attribute_escape($pagenow),'admin-custom-fields') );
if ( current_user_can('manage_categories') )
wp_enqueue_script( 'ajaxcat' );
if ( user_can_richedit() )