You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2019/07/19 14:13:59 UTC
[vcl] 12/13: VCL-1114 - miscellaneous small web updates
This is an automated email from the ASF dual-hosted git repository.
jfthomps pushed a commit to branch VCL-1114_misc_small_web_updates
in repository https://gitbox.apache.org/repos/asf/vcl.git
commit 67cbad6706b6649ab81bee8cba47cbfb2ebbfdff
Author: Josh Thompson <jf...@ncsu.edu>
AuthorDate: Wed Jul 10 16:46:35 2019 -0400
VCL-1114 - miscellaneous small web updates
utils.php: modified initGlobals: added modes selectauth and main to if conditional that reads openssl private and public keys so that shib auth works correctly
---
web/.ht-inc/utils.php | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/.ht-inc/utils.php b/web/.ht-inc/utils.php
index d27373f..677ad54 100644
--- a/web/.ht-inc/utils.php
+++ b/web/.ht-inc/utils.php
@@ -139,7 +139,10 @@ function initGlobals() {
's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '0');
- if(array_key_exists('VCLAUTH', $_COOKIE) || $mode == 'submitLogin') {
+ if(isset($_COOKIE['VCLAUTH']) ||
+ $mode == 'submitLogin' ||
+ $mode == 'selectauth' ||
+ $mode == 'main') {
// open keys
$fp = fopen(".ht-inc/keys.pem", "r");
$key = fread($fp, 8192);