[wp-trac] [WordPress Trac] #25733: Plus (+) symbol in plugin name cannot activate this

WordPress Trac noreply at wordpress.org
Sun Oct 27 17:01:34 UTC 2013


#25733: Plus (+) symbol in plugin name cannot activate this
---------------------------+-----------------------------
 Reporter:  godhulii_1985  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Plugins        |    Version:
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 I created a plugin having "+" in filename (allowed in windows) and found
 an error to activate the plugin. After searching a lot, it seems that the
 problem is in .php, you can find how this problem was reported in drupal
 community and their thoughts here: [https://drupal.org/node/615418]


 To repeat this bug you just need to rename a plugin with "+" symbol in the
 filename and try to activate. The activation url becomes:
 {{{http://localhost/wordpress/wp-
 admin/plugins.php?action=activateplugin=hello+dolly%2Fhello.php&_wpnonce=XXXXXX}}}

 I tried to replace the {{{+}}} symbol in query string with %2B (its
 unicode value), this activated the plugin but also said: ''A fatal error
 occured, the plugin cannot be activate''.


 ----
 I messed up the process to repeat, so writing again:

  1. Rename a folder with + character in its filename
  2. Try to activate
  3. An error will occur, = '''First observation of error'''
  4. Now replace the + symbol with %2B and try again
  5. The plugin will be activated but in the status it will say it was not
 activated and an error occured = '''Second observation of error'''
 ----

 In my opinion, although it might be an issue with the programming
 language, but wordpress can obviously inform coders about this.

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


More information about the wp-trac mailing list