Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Feb 2015 at 13:25 UTC
Updated:
4 Mar 2015 at 17:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mikeker commentedAttached patch pushes the
settings.local.phpprocessing to the bottom ofdefault.settings.php.Comment #2
mikeker commentedDuh...
Comment #3
mikeker commentedComment #4
dawehnerUrgs ... I wonder whether we can test this to ensure it doesn't happen again?
Comment #5
mpdonadio#2416563: Follow-up to "HTTP_HOST header cannot be trusted" removed trusted_host_patterns from sites/example.settings.local.php.
Updated IS to reflect true bug...
Comment #6
mikeker commented@dawehner: I suppose we could use a regex to test that the local settings file directive is at the end of
default.settings.php. I'm concerned that would be a pretty brittle test, though it is for rarely changed code...Thoughts?
Comment #8
webchickHm. Yeah, I can't really think of a useful test that would work even if something else completely different was appended to the bottom next time. And we might do just as well with making the last line of the file "# No, seriously, don't ever put anything else at the bottom of this file." ;)
For now, I'm comfortable considering this a one-off since the documentation does say that, and just wasn't followed in that issue. If it happens again, maybe we can add some capital letters and ASCII snowmen or whatever to the docs, too. ;)
Committed and pushed to 8.0.x. Thanks!
Comment #9
mikeker commentedSomething like this? :)
Comment #10
webchickLOL :)