git-svn-id: http://svn.automattic.com/wordpress/trunk@2329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-14 07:06:52 +00:00
parent f4dafc015f
commit becc1347cb
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ case 'upload':
$img1_name = (strlen($imgalt)) ? $imgalt : basename( $_FILES['img1']['name'] );
$img1_name = preg_replace('/[^a-z0-9.]/i', '', $img1_name);
$img1_size = $_POST['img1_size'] ? intval($_POST['img1_size']) : intval($_FILES['img1']['size']);
$img1_type = (strlen($imgalt)) ? $_POST['img1_type'] : $_FILES['img1']['type'];
$imgdesc = htmlentities2($imgdesc);