Making WordPress.org

Changeset 2999


Ignore:
Timestamp:
04/22/2016 07:25:24 AM (9 years ago)
Author:
dd32
Message:

Plugin Directory: SVN Helpers: Use shell_exec() instead of exec() so as to get all the lines of output, instead of just the last.

See #1584

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tools/class-svn.php

    r2994 r2999  
    3333        $esc_destination = escapeshellarg( $destination );
    3434
    35         $output = exec( "svn export $esc_options $esc_url $esc_destination 2>&1" );
     35        $output = shell_exec( "svn export $esc_options $esc_url $esc_destination 2>&1" );
    3636        if ( preg_match( '/Exported revision (?P<revision>\d+)[.]/i', $output, $m ) ) {
    3737            $revision = (int) $m['revision'];
     
    6161        $esc_url = escapeshellarg( $url );
    6262
    63         $output = exec( "svn ls $esc_options $esc_url 2>&1" );
     63        $output = shell_exec( "svn ls $esc_options $esc_url 2>&1" );
    6464
    6565        $errors = self::parse_svn_errors( $output );
Note: See TracChangeset for help on using the changeset viewer.