From 86ce8b6ea76e6cf5a6bb5c3e44b9c4cd93c0bf2b Mon Sep 17 00:00:00 2001
From: yflory <yann.flory@xwiki.com>
Date: Thu, 21 Feb 2019 10:48:30 +0100
Subject: [PATCH] Fix file app broken with V1 hashes

---
 www/common/common-hash.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/common/common-hash.js b/www/common/common-hash.js
index 71ad0977b..3ef802681 100644
--- a/www/common/common-hash.js
+++ b/www/common/common-hash.js
@@ -517,7 +517,7 @@ Version 1
             // pads and files should have a base64 (or hex) key
             if (parsed.hashData.type === 'pad' || parsed.hashData.type === 'file') {
                 if (!parsed.hashData.key) { return; }
-                if (!/^[a-zA-Z0-9+-/]+$/.test(parsed.hashData.key)) { return; }
+                if (!/^[a-zA-Z0-9+-/=]+$/.test(parsed.hashData.key)) { return; }
             }
         }
         return true;