From 0242686a7a32b45022602d839e133ac969219b06 Mon Sep 17 00:00:00 2001
From: Ingo Schommer
Date: Tue, 18 Dec 2012 00:58:09 +0100
Subject: [PATCH] Requirements acces to files with query strings (fixes #7735)
Originally authored by florian.thoma, tests added
by Ingo Schommer. Also removed query params from
file paths before calling mtime() on it.
See https://github.com/silverstripe/sapphire/pull/1023
---
tests/forms/RequirementsTest.php | 28 +++
view/Requirements.php | 281 ++++++++++++++++---------------
2 files changed, 171 insertions(+), 138 deletions(-)
diff --git a/tests/forms/RequirementsTest.php b/tests/forms/RequirementsTest.php
index 9c53e0ec9..af54ce2a7 100644
--- a/tests/forms/RequirementsTest.php
+++ b/tests/forms/RequirementsTest.php
@@ -325,6 +325,34 @@ class RequirementsTest extends SapphireTest {
$this->assertContains('
Body