From cf7e2ec2729f8deed9cf5e9d28393de0376ed8ae Mon Sep 17 00:00:00 2001 From: Rob van Son Date: Mon, 18 Jun 2012 13:31:58 +0200 Subject: [PATCH] Small change in Allowed paths in new account --- CGIscriptor.html | 2 +- CGIscriptor.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CGIscriptor.html b/CGIscriptor.html index 94b445b..2900e11 100644 --- a/CGIscriptor.html +++ b/CGIscriptor.html @@ -1599,7 +1599,7 @@ Type: PASSWORD Username: newuser Password: 84b26fd2aaacae1c2e42fe07da1793e8232ffe548eceb519b46646fe9ff32612 Salt: 970e68017413fb0ea84d7fe3c463077636dd6d53486910d4a53c693dd4109b1a -AllowedPaths: ^/Private/[\w\-]*\.html? +AllowedPaths: ^/Private/[\w\-]+\.html? AllowedPaths: ^/Private/newuser/ Session: SESSION Date: Thu Jun 14 12:34:40 2012 UTC diff --git a/CGIscriptor.pl b/CGIscriptor.pl index 59c57c4..7d35914 100755 --- a/CGIscriptor.pl +++ b/CGIscriptor.pl @@ -1799,7 +1799,7 @@ if(grep(/\-\-help/i, @ARGV)) # Username: newuser # Password: 84b26fd2aaacae1c2e42fe07da1793e8232ffe548eceb519b46646fe9ff32612 # Salt: 970e68017413fb0ea84d7fe3c463077636dd6d53486910d4a53c693dd4109b1a -# AllowedPaths: ^/Private/[\w\-]*\.html? +# AllowedPaths: ^/Private/[\w\-]+\.html? # AllowedPaths: ^/Private/newuser/ # Session: SESSION # Date: Thu Jun 14 12:34:40 2012 UTC @@ -3240,7 +3240,7 @@ sub create_newuser # ($loginfile, $sessionfile, $authorizationfile, $password, $ if($currentRoot) { $currentRoot .= '/' unless $currentRoot =~ m!/$!; - $NewAllowedPaths .= 'AllowedPaths: ^'.${currentRoot}.'[\w\-]*\.html?'."\n"; + $NewAllowedPaths .= 'AllowedPaths: ^'.${currentRoot}.'[\w\-]+\.html?'."\n"; } else { -- 2.11.4.GIT