From c10c02374bdcde8cde7ecd0f1445d987524f6bc8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 22 Aug 2007 17:57:36 +0000 Subject: [PATCH] Sanitize a few options git-svn-id: https://develop.svn.wordpress.org/trunk@5914 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/formatting.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 105b2d50a5..dc5d2f2d66 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1128,6 +1128,11 @@ function sanitize_option($option, $value) { // Remember to call stripslashes! case 'default_post_edit_rows': case 'mailserver_port': case 'comment_max_links': + case 'page_on_front': + case 'rss_excerpt_length': + case 'default_category': + case 'default_email_category': + case 'default_link_category': $value = abs((int) $value); break;