From 152c8ec22464fd714429c892f7523b4d87b26a0e Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Mon, 17 May 2004 14:53:22 +0000 Subject: [PATCH] minor fix to use intval git-svn-id: http://svn.automattic.com/wordpress/trunk@1295 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 7ca65ba5a2..41c047427e 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -85,7 +85,8 @@ break; case 'edit': require_once ('admin-header.php'); - $category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = '{$_GET['cat_ID']}'"); + $cat_ID = intval($_GET['cat_ID']); + $category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = '$cat_ID'"); $cat_name = stripslashes($category->cat_name); ?>