WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2013 05:00:25 PM (9 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r23554 r23563  
    14281428        $install_actions = array();
    14291429
    1430         $from = isset($_GET['from']) ? stripslashes($_GET['from']) : 'plugins';
     1430        $from = isset($_GET['from']) ? wp_unslash( $_GET['from'] ) : 'plugins';
    14311431
    14321432        if ( 'import' == $from )
Note: See TracChangeset for help on using the changeset viewer.