Sanitize a few options

git-svn-id: http://svn.automattic.com/wordpress/trunk@5914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-08-22 17:57:36 +00:00
parent 27657cd8cf
commit 1a2aa3fcc3
1 changed files with 5 additions and 0 deletions

View File

@ -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;