[wp-trac] [WordPress Trac] #19399: New uploader doesn't show if the options for large image sizes are not numbers

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 30 09:43:43 UTC 2011


#19399: New uploader doesn't show if the options for large image sizes are not
numbers
--------------------------+-------------------------
 Reporter:  westi         |      Owner:  azaozz
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  3.3
Component:  Upload        |    Version:  3.3
 Severity:  major         |   Keywords:  needs-patch
--------------------------+-------------------------
 {{{
 Error: syntax error
 Source File: ...wp-admin/media-upload.php?post_id=xxx&
 Line: 132, Column: 20
 Source Code:
 var resize_height = , resize_width = ,
 }}}

 We blindly output the data returned from get_option:

 We should:
  * Validate it is an integer
  * Sanitize what we output

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19399>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list