Skip to content

Commit 84746c9

Browse files
committed
apereo#152 apereo#147 Fix code documentation
1 parent 18baccf commit 84746c9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/CAS.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
function gettmpdir() {
250250
if (!empty($_ENV['TMP'])) { return realpath($_ENV['TMP']); }
251251
if (!empty($_ENV['TMPDIR'])) { return realpath( $_ENV['TMPDIR']); }
252-
if (!empty($_ENV['TEMP'])) { return realpath( $_ENV['TEMP']); }
252+
if (!empty($_ENV['TEMP'])) { return realpath( $_ENV['TEMP']); }
253253
return "/tmp";
254254
}
255255
define('DEFAULT_DEBUG_DIR', gettmpdir()."/");
@@ -303,7 +303,9 @@ class phpCAS
303303
private static $_PHPCAS_DEBUG;
304304

305305
/**
306-
* This variable is used to store phpCAS debug mode.
306+
* This variable is used to enable verbose mode
307+
* This pevents debug info to be show to the user. Since it's a security
308+
* feature the default is false
307309
*
308310
* @hideinitializer
309311
*/
@@ -471,7 +473,7 @@ public static function setDebug($filename = '')
471473
/**
472474
* Enable verbose errors messages in the website output
473475
* This is a security relevant since internal status info may leak an may
474-
* help an attacker
476+
* help an attacker. Default is therefore false
475477
*
476478
* @param bool $verbose enable verbose output
477479
*

0 commit comments

Comments
 (0)