[wp-trac] [WordPress Trac] #62627: PHP warning or fatal error if user supplies array instead of string

WordPress Trac noreply at wordpress.org
Mon Dec 2 19:16:01 UTC 2024


#62627: PHP warning or fatal error if user supplies array instead of string
----------------------------------------------+----------------------------
 Reporter:  leedxw                            |       Owner:  (none)
     Type:  defect (bug)                      |      Status:  new
 Priority:  normal                            |   Milestone:  Awaiting
                                              |  Review
Component:  Feeds                             |     Version:  6.7.1
 Severity:  normal                            |  Resolution:
 Keywords:  has-testing-info has-screenshots  |     Focuses:
----------------------------------------------+----------------------------

Comment (by ankitkumarshah):

 Hi @leedxw,

 Thank you for bringing this up. I was successfully able to reproduce the
 issue.

 [[Image(https://i.postimg.cc/MT7H8pgt/image.png)]]


 This could be resolved by adding checks of `is_string()` right before
 string operations and concatenations. Below is a potential patch that
 could help resolve the problem.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62627#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list