projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90d4031
)
better detect disable http auht
author
Alan
<alan@roojs.com>
Thu, 19 May 2022 05:55:19 +0000
(13:55 +0800)
committer
Alan
<alan@roojs.com>
Thu, 19 May 2022 05:55:19 +0000
(13:55 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
8799d54
..
56c08af
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-257,7
+257,7
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
// we have a situation where the app is behind a http access and is also login
// need to work out a way to handle that.
// we have a situation where the app is behind a http access and is also login
// need to work out a way to handle that.
- if (php_sapi_name() != "cli" &&
empty($_SERVER['PHP_AUTH_USER']) && !empty($ff->disable_http_auth
)) {
+ if (php_sapi_name() != "cli" &&
(empty($_SERVER['PHP_AUTH_USER']) || !empty($ff->disable_http_auth)
)) {
@session_start();
}
@session_start();
}
@@
-290,7
+290,7
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
// http basic auth..
$u = DB_DataObject::factory($this->tableName());
// http basic auth..
$u = DB_DataObject::factory($this->tableName());
- if (empty($
_COOKIE['PHPSESSID'])
// http auth requests should not have this...
+ if (empty($
ff->disable_http_auth)
// http auth requests should not have this...
&&
!empty($_SERVER['PHP_AUTH_USER'])
&&
&&
!empty($_SERVER['PHP_AUTH_USER'])
&&