Sanitize cat_id, fixes #4691

git-svn-id: http://svn.automattic.com/wordpress/trunk@5835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2007-08-01 19:40:30 +00:00
parent f28dad8261
commit 0c1b4f93ca
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ foreach ($categories as $category) {
<h2><?php _e('Importing...') ?></h2>
<?php
$cat_id = $_POST['cat_id'];
if ( $cat_id == '' || $cat_id == 0 )
$cat_id = abs( (int) $_POST['cat_id'] );
if ( $cat_id < 1 )
$cat_id = 1;
$opml_url = $_POST['opml_url'];