Skip to content
Snippets Groups Projects
Commit 879bc497 authored by Darren Fisher's avatar Darren Fisher
Browse files

Fix placement of default response in system_file_download function.

parent 8e95b8d3
No related branches found
No related tags found
No related merge requests found
Pipeline #384909 failed
Pipeline: drupal-2842405

#384912

    ...@@ -587,8 +587,6 @@ function system_file_download($uri): Response { ...@@ -587,8 +587,6 @@ function system_file_download($uri): Response {
    if (array_intersect($parts, ['.', '..'])) { if (array_intersect($parts, ['.', '..'])) {
    return -1; return -1;
    } }
    // Default response when the file is not found.
    return new Response('File not found', 404);
    } }
    } }
    } }
    ...@@ -605,6 +603,9 @@ function system_file_download($uri): Response { ...@@ -605,6 +603,9 @@ function system_file_download($uri): Response {
    ]; ];
    } }
    } }
    // Default response when the file is not found.
    return new Response('File not found', 404);
    } }
    /** /**
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment