Skip to content

Commit

Permalink
Merge pull request #29 from EmmanF/master
Browse files Browse the repository at this point in the history
Remove trailing slash for storage url prefix
  • Loading branch information
eugene-manuilov authored Nov 22, 2017
2 parents 227db14 + 31965cc commit 1273c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows-azure-storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function windows_azure_storage_wp_handle_upload( $uploads ) {
function get_updated_upload_url( $url ) {
$wp_upload_dir = wp_upload_dir();
$upload_dir_url = $wp_upload_dir['baseurl'];
$storage_url_prefix = WindowsAzureStorageUtil::get_storage_url_base();
$storage_url_prefix = untrailingslashit(WindowsAzureStorageUtil::get_storage_url_base());

return str_replace( $upload_dir_url, $storage_url_prefix, $url );
}
Expand Down Expand Up @@ -893,4 +893,4 @@ function windows_azure_no_filesystem_access_notice() {
}
}

add_action( 'admin_notices', 'windows_azure_no_filesystem_access_notice' );
add_action( 'admin_notices', 'windows_azure_no_filesystem_access_notice' );

0 comments on commit 1273c96

Please sign in to comment.