aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lfs-latest-git.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lfs-latest-git.php b/lfs-latest-git.php
index c0c7aaea3..6894b4a9e 100644
--- a/lfs-latest-git.php
+++ b/lfs-latest-git.php
@@ -85,8 +85,9 @@ function http_get_file( $url )
exec( "curl --location --silent --max-time 30 $url", $dir );
- $s = implode( "\n", $dir );
- $dir = strip_tags( $s );
+ $dir = implode( "\n", $dir );
+ if ( !preg_match( "/api.github.com/", $url) )
+ $dir = strip_tags( $dir );
return explode( "\n", $dir );
}