From d8a5a0dd4a12d9ad602481328f55f5fcd7ff43fb Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 28 Jun 2020 23:58:31 +0200 Subject: [PATCH] Fix matching of periods in path --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index c18f72d..9592bf3 100644 --- a/index.php +++ b/index.php @@ -15,9 +15,9 @@ $router->map('GET', '/proofs', function() {}, 'proofs'); $router->map('GET', '/verify/[:uid]', function() {}, 'verifyUid'); $router->map('GET', '/encrypt/[:uid]', function() {}, 'encryptUid'); $router->map('GET', '/proofs/[:uid]', function() {}, 'proofsUid'); -$router->map('GET', '/verify/hkp/[:uid]', function() {}, 'verifyHKP'); -$router->map('GET', '/encrypt/hkp/[:uid]', function() {}, 'encryptHKP'); -$router->map('GET', '/proofs/hkp/[:uid]', function() {}, 'proofsHKP'); +$router->map('GET', '/verify/hkp/[**:uid]', function() {}, 'verifyHKP'); +$router->map('GET', '/encrypt/hkp/[**:uid]', function() {}, 'encryptHKP'); +$router->map('GET', '/proofs/hkp/[**:uid]', function() {}, 'proofsHKP'); $router->map('GET', '/verify/wkd/[**:uid]', function() {}, 'verifyWKD'); $router->map('GET', '/encrypt/wkd/[**:uid]', function() {}, 'encryptWKD'); $router->map('GET', '/proofs/wkd/[**:uid]', function() {}, 'proofsWKD');