diff --git a/cssconcat.php b/cssconcat.php
index 7bda7b1..b453df2 100644
--- a/cssconcat.php
+++ b/cssconcat.php
@@ -133,7 +133,8 @@ function do_items( $handles = false, $group = false ) {
}
$handles = array_keys( $css );
- echo apply_filters( 'ngx_http_concat_style_loader_tag', "\n", $handles, $href, $media );
+ $clean_media = str_replace( ' ', '-', $media );
+ echo apply_filters( 'ngx_http_concat_style_loader_tag', "\n", $handles, $href, $media );
array_map( array( $this, 'print_inline_style' ), array_keys( $css ) );
}
}