From 2a5f772db0aee37febfd675c6481740e4dc142ec Mon Sep 17 00:00:00 2001
From: Niels de Feyter <niels@nielsdefeyter.nl>
Date: Fri, 24 Apr 2015 21:27:01 +0200
Subject: [PATCH] Issue #2472041 by skelly: EOL Agnostic Info File Parsing.

---
 unused_modules.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unused_modules.module b/unused_modules.module
index f21f768..368798e 100644
--- a/unused_modules.module
+++ b/unused_modules.module
@@ -381,7 +381,7 @@ function _unused_modules_add_info_file_information(&$modules = array()) {
         $error_message = "No .info file found for module '" . $module->name . "'";
         throw new Exception($error_message);
       }
-      $info_file = explode(PHP_EOL, file_get_contents($module->info_file));
+      $info_file = file($module->info_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
 
       // Traverse all lines in .info and look for the line that starts
       // with "project". When found, add the project name to the module object.
-- 
GitLab