Browse Source

fix LICENSE hack in compile script

Jordi Boggiano 13 năm trước cách đây
mục cha
commit
5b42f99441
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/Composer/Compiler.php

+ 3 - 1
src/Composer/Compiler.php

@@ -104,8 +104,10 @@ class Compiler
 
         if ($strip) {
             $content = php_strip_whitespace($file);
-        } else {
+        } elseif ('LICENSE' === basename($file)) {
             $content = "\n".file_get_contents($file)."\n";
+        } else {
+            $content = file_get_contents($file);
         }
 
         $content = str_replace('@package_version@', $this->version, $content);