diff --git a/install.php b/install.php
index 224388d4467ddadc7719cf972d95b45bfecc4141..33594e491bad85a00572391711c494baf7ee352a 100644
--- a/install.php
+++ b/install.php
@@ -358,7 +358,8 @@ function check_configs(){
 
 
     // main dokuwiki config file (conf/dokuwiki.php) must not have been modified
-    $installation_hash = md5(@file_get_contents(DOKU_CONF.'dokuwiki.php'));
+    $installation_hash = md5(preg_replace("/(\015\012)|(\015)/","\012",
+                             @file_get_contents(DOKU_CONF.'dokuwiki.php')));
     if (!in_array($installation_hash, $dokuwiki_hash)) {
         $error[] = sprintf($lang['i_badhash'],$installation_hash);
         $ok = false;