fee8b5ed6e1023fcf64d3d86e35ec1c9e07bcbab Issue #2242609 by jwilson3: Correctly analyze htaccess in files directory.
diff --git a/security_review.inc b/security_review.inc
index e27cb61..f78930e 100644
--- a/security_review.inc
+++ b/security_review.inc
@@ -640,8 +640,8 @@ function security_review_check_executable_php($last_check = NULL) {
   else {
     $contents = file_get_contents($directory . '/.htaccess');
     // Text from includes/file.inc.
-    $expected = "SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006\nOptions None\nOptions +FollowSymLinks";
-    if ($contents !== $expected) {
+    $expected = file_htaccess_lines(FALSE);
+    if (trim($contents) !== trim($expected)) {
       $result = FALSE;
       $check_result_value[] = 'incorrect_htaccess';
     }
