summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-08 17:43:17 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-08 17:43:17 +0000
commit4016493b0a9e01319b96d9ae3bcc2ba0b3b6cf37 (patch)
tree9e06bdf4a60fbcedfd85fac640aa1fee3be5b848
parentb76a58b41408a3c2461348b8f6b108bb2af9a827 (diff)
downloadbrdo-4016493b0a9e01319b96d9ae3bcc2ba0b3b6cf37.tar.gz
brdo-4016493b0a9e01319b96d9ae3bcc2ba0b3b6cf37.tar.bz2
#705854 by scor: Workaround for cURL url fragment bug to fix testbot.
-rw-r--r--modules/simpletest/drupal_web_test_case.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index 38beb0bc1..dab7a575d 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -1452,6 +1452,12 @@ class DrupalWebTestCase extends DrupalTestCase {
protected function drupalGet($path, array $options = array(), array $headers = array()) {
$options['absolute'] = TRUE;
+ // CURL breaks if the URL contains a fragment.
+ // @todo remove when http://drupal.org/node/671520 is fixed.
+ // Strips off any fragment from the path and options.
+ $path = array_shift(explode('#', $path));
+ unset($options['fragment']);
+
// We re-using a CURL connection here. If that connection still has certain
// options set, it might change the GET into a POST. Make sure we clear out
// previous options.