diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-07-18 07:24:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-07-18 07:24:29 +0000 |
commit | d8aacc5de273da3b2d20ae8063bc8da4e57ae097 (patch) | |
tree | 667741f8f53b59fb0a94ec5f666ca0fde8eef8dc /modules/simpletest | |
parent | 18cd9c79fc1cbf704741333740e267b800af0adf (diff) | |
download | brdo-d8aacc5de273da3b2d20ae8063bc8da4e57ae097.tar.gz brdo-d8aacc5de273da3b2d20ae8063bc8da4e57ae097.tar.bz2 |
- Patch #225880 by pwolanin, webchick, keith.smith, et al: fixed non-writability of settings.php.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/simpletest.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test index 2da05d6a3..f21b8d38b 100644 --- a/modules/simpletest/simpletest.test +++ b/modules/simpletest/simpletest.test @@ -42,6 +42,12 @@ class SimpleTestTestCase extends DrupalWebTestCase { if (!$this->inCURL()) { $this->drupalGet('node'); $this->assertTitle(variable_get('site_name', 'Drupal'), t('Site title matches.')); + // Make sure that we are locked out of the installer when prefixing + // using the user-agent header. This is an important security check. + global $base_url; + + $this->drupalGet($base_url . '/install.php', array('external' => TRUE)); + $this->assertResponse(403, 'Cannot access install.php with a "simpletest" user-agent header.'); } } |