escape pagenow. Props xknown. fixes #3988 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@5059 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-18 23:04:22 +00:00
parent d8336eed5c
commit a9ad6f372f
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() )