[Bb-trac] Re: [bbPress] #1089: Plugins on my-plugins subfolders do not activate

bbPress bb-trac at lists.bbpress.org
Sun May 17 12:03:55 GMT 2009


#1089: Plugins on my-plugins subfolders do not activate
----------------------------+-----------------------------------------------
 Reporter:  Txanny          |        Owner:          
     Type:  defect          |       Status:  new     
 Priority:  normal          |    Milestone:  1.0     
Component:  Administration  |      Version:  1.0-rc-1
 Severity:  normal          |   Resolution:          
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by Txanny):

 The problem is on plugins.php line 35:

 $
 {{{
 plugin = isset( $_REQUEST['plugin'] ) ? trim( stripslashes(
 $_REQUEST['plugin'] ) ) : '';

 }}}

 Stripping slashes removes the directory slashes needed to locate the
 pluigin on the proper folder. This works:

 $
 {{{
 plugin = isset( $_REQUEST['plugin'] ) ? trim( $_REQUEST['plugin'] ) : '';

 }}}

-- 
Ticket URL: <http://trac.bbpress.org/ticket/1089#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list