Skip to content

Commit

Permalink
use readfile() instead of file_get_contents(), fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Dec 22, 2022
1 parent 8aef66f commit 1edf291
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ function ea_icon( $atts = array() ) {
if( ! file_exists( $icon_path ) )
return;

$icon = file_get_contents( $icon_path );
ob_start();
readfile( $icon_path );
$icon = ob_get_clean();

$class = 'svg-icon';
if( !empty( $atts['class'] ) )
Expand Down

0 comments on commit 1edf291

Please sign in to comment.