[wp-trac] [WordPress Trac] #16773: Unescaped preg_match breaks with PHP 5.3 Namespaced Widget Classes.

WordPress Trac noreply at wordpress.org
Fri Jun 5 17:38:01 UTC 2015


#16773: Unescaped preg_match breaks with PHP 5.3 Namespaced Widget Classes.
-------------------------------------------------+-------------------------
 Reporter:  5ubliminal                           |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Widgets                              |  Review
 Severity:  minor                                |     Version:  3.1
 Keywords:  has-patch needs-unit-tests needs-    |  Resolution:
  testing                                        |     Focuses:
-------------------------------------------------+-------------------------

Comment (by stevenkword):

 I've attached widgets.txt which contains a list of all classes which
 extend `WP_Widget` from the plugin repository.

 The list was created using Mark Jaquith's  [https://github.com/markjaquith
 /WordPress-Plugin-Directory-Slurper WordPress-Plugin-Directory-Slurper] to
 obtain a directory of plugins.

 Then I used the following command to create the file:
 `ack-grep --php "[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*. extends
 WP_Widget" ./plugins/ | cut -d' ' -f2 > ./widgets.txt`

 The pattern was taken from here: [http://php.net/manual/en/functions.user-
 defined.php]

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


More information about the wp-trac mailing list