mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
Sanitize cat_id, fixes #4691
git-svn-id: https://develop.svn.wordpress.org/trunk@5835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
35621d27ab
commit
c08fda3c20
@ -73,8 +73,8 @@ foreach ($categories as $category) {
|
|||||||
|
|
||||||
<h2><?php _e('Importing...') ?></h2>
|
<h2><?php _e('Importing...') ?></h2>
|
||||||
<?php
|
<?php
|
||||||
$cat_id = $_POST['cat_id'];
|
$cat_id = abs( (int) $_POST['cat_id'] );
|
||||||
if ( $cat_id == '' || $cat_id == 0 )
|
if ( $cat_id < 1 )
|
||||||
$cat_id = 1;
|
$cat_id = 1;
|
||||||
|
|
||||||
$opml_url = $_POST['opml_url'];
|
$opml_url = $_POST['opml_url'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user