From 6b699032088d2141335d0ccb4e9836ffb9739bd0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 19 Sep 2015 08:56:01 -0400 Subject: [PATCH] Task: Modified the way UUIDs are validated --- src/Task.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 85b65a133..522ec98fa 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1427,10 +1427,9 @@ void Task::validate (bool applyDefault /* = true */) if (has ("uuid") && uid != "") { Lexer lex (uid); + std::string token; Lexer::Type type; - if (! lex.token (uid, type) || - uid.length () != 36 || - type != Lexer::Type::uuid) + if (! lex.isUUID (token, type, false)) throw format (STRING_CMD_IMPORT_UUID_BAD, uid); } else