Commit 486edae6 authored by catch's avatar catch

Issue #2174997 by alexpott: Random fail in ImageFieldDisplayTest.

parent 7099e22f
......@@ -1342,7 +1342,9 @@ public function randomStringValidate($string) {
}
// Starting with a space means that length might not be what is expected.
if (preg_match('/^\s/', $string)) {
// Starting with an @ sign causes CURL to fail if used in conjunction with a
// file upload, see https://drupal.org/node/2174997.
if (preg_match('/^(\s|@)/', $string)) {
return FALSE;
}
......
......@@ -48,6 +48,8 @@ public function randomStringValidateProvider () {
array('curry paste', FALSE),
array('curry paste', TRUE),
array('thai green curry paste', TRUE),
array('@startswithat', FALSE),
array('contains@at', TRUE),
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment