Plugin Directory

Changeset 153356


Ignore:
Timestamp:
09/09/2009 06:45:48 PM (16 years ago)
Author:
ruslany
Message:

Fixed a bug that caused the uploader.php to fail on Linux File Systems.

Location:
wp-media-player
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-media-player/tags/0.7.1/uploader.php

    r152171 r153356  
    3232$videourl = null;
    3333$postid = $_GET['post_id'];
    34 $upload_path = trim(get_option('upload_path'), '/');
     34$upload_path = get_option( 'upload_path' );
    3535$errors = null;
    3636
    3737// Workaround for PHP 4
    38 if ( strpos($upload_path, ABSPATH) === 0 )
    39     $upload_path = substr($upload_path, strlen(ABSPATH));
     38if ( strpos( $upload_path, ABSPATH ) === 0 ) {
     39    $upload_path = substr( $upload_path, strlen( ABSPATH ) );
     40}
     41$upload_path = trim( $upload_path, '/' );
    4042
    4143$default_parameters = array(    'autoLoad' => get_option('wp_media_player_autoLoad'),
  • wp-media-player/trunk/uploader.php

    r152171 r153356  
    3232$videourl = null;
    3333$postid = $_GET['post_id'];
    34 $upload_path = trim( get_option( 'upload_path' ), '/' );
     34$upload_path = get_option( 'upload_path' );
    3535$errors = null;
    3636
    3737// Workaround for PHP 4
    38 if ( strpos( $upload_path, ABSPATH ) === 0 )
     38if ( strpos( $upload_path, ABSPATH ) === 0 ) {
    3939    $upload_path = substr( $upload_path, strlen( ABSPATH ) );
     40}
     41$upload_path = trim( $upload_path, '/' );
    4042
    4143$default_parameters = array(    'autoLoad' => get_option( 'wp_media_player_autoLoad' ),
Note: See TracChangeset for help on using the changeset viewer.