Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
486edae6
Commit
486edae6
authored
Mar 05, 2014
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2174997
by alexpott: Random fail in ImageFieldDisplayTest.
parent
7099e22f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
+3
-1
core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
...simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
+2
-0
No files found.
core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
View file @
486edae6
...
...
@@ -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
;
}
...
...
core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
View file @
486edae6
...
...
@@ -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
),
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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