Ticket #625: Ticket-625.2.patch

File Ticket-625.2.patch, 962 bytes (added by so1o, 5 years ago)

patch for plugin and theme fix

  • bb-admin/plugins.php

     
    1313        } 
    1414 
    1515if ( isset($_GET['action']) ) { 
    16         $plugin = stripslashes(trim($_GET['plugin'])); 
     16        $plugin = trim(urldecode($_GET['plugin'])); 
    1717        if ('activate' == $_GET['action']) { 
    1818                bb_check_admin_referer( 'activate-plugin_' . $plugin ); 
    1919                if ( !in_array($plugin, array_keys($plugins)) ) 
  • bb-admin/themes.php

     
    77                exit; 
    88        } 
    99        bb_check_admin_referer( 'switch-theme' ); 
    10         $activetheme = stripslashes($_GET['theme']); 
     10        $activetheme = urldecode($_GET['theme']); 
    1111        bb_update_option( 'bb_active_theme', $activetheme ); 
    1212        wp_redirect( bb_get_option( 'uri' ) . 'bb-admin/themes.php?activated' ); 
    1313        exit;