Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4016493b
Commit
4016493b
authored
Feb 08, 2010
by
Angie Byron
Browse files
#705854
by scor: Workaround for cURL url fragment bug to fix testbot.
parent
b76a58b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/simpletest/drupal_web_test_case.php
View file @
4016493b
...
...
@@ -1452,6 +1452,12 @@ protected function parse() {
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment