Skip to content

Commit

Permalink
Fixed the _wc_file_urls sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Mar 23, 2015
1 parent 1600bcd commit 931679b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ function attributes_cmp( $a, $b ) {

for ( $i = 0; $i < $file_url_size; $i ++ ) {
if ( ! empty( $file_urls[ $i ] ) ) {
$file_url = ( 0 === strpos( $file_urls[ $i ], '[' ) && 0 !== strpos( $file_urls[ $i ], 'http' ) ) ? wc_clean( $file_urls[ $i ] ) : esc_url_raw( $file_urls[ $i ] );
$file_url = ( 0 !== strpos( $file_urls[ $i ], 'http' ) ) ? wc_clean( $file_urls[ $i ] ) : esc_url_raw( $file_urls[ $i ] );
$file_name = wc_clean( $file_names[ $i ] );
$file_hash = md5( $file_url );
$files[ $file_hash ] = array(
Expand Down

0 comments on commit 931679b

Please sign in to comment.