diff -u b/tfa.inc b/tfa.inc --- b/tfa.inc +++ b/tfa.inc @@ -514,7 +514,7 @@ * [3]: The encrypted data. */ protected function getPartsFromEncryptedStorageText($encrypted_storage_text) { - $regex = '/(\d+\|){0,1}(.{16})?\|/'; + $regex = '/^(\d+\|){0,1}(.{16})\|(.*)$/'; preg_match($regex, $encrypted_storage_text, $matches); return $matches; }