We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a2b812d + 977879a commit 44db8ceCopy full SHA for 44db8ce
1 file changed
ProcessMaker/Helpers/DataTypeHelper.php
@@ -10,6 +10,9 @@ private static function isDate($value)
10
{
11
if (is_string($value)) {
12
if (strlen($value) > 5) {
13
+ if (!preg_match('/\d{4}-\d{2}-\d{2}/', $value)) {
14
+ return false;
15
+ }
16
try {
17
$parsed = Carbon::parse($value);
18
if ($parsed->isMidnight()) {
0 commit comments