Author: Lars Michelsen <[email protected]>
Date: Thu Aug 25 18:13:13 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Thu Aug 25 18:13:13 2011 +0200
Bugfix: Fixed login problems in opera (Not setting auth cookie when
using ip addresses as host address)
---
ChangeLog | 2 ++
share/server/core/classes/CoreSessionHandler.php | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a2cf630..c063352 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
Core
* Bugfix: Fixed SQL syntax error in MySQL auth backend
+ * Bugfix: Fixed login problems in opera (Not setting auth cookie when
+ using ip addresses as host address
* Removed option "-B" from installer, it is not needed anymore
* Added exclude_members and exclude_member_states options to stateful
objects for excluding specific member objects completely or only during
summary
diff --git a/share/server/core/classes/CoreSessionHandler.php
b/share/server/core/classes/CoreSessionHandler.php
index a71a036..1e57a54 100644
--- a/share/server/core/classes/CoreSessionHandler.php
+++ b/share/server/core/classes/CoreSessionHandler.php
@@ -43,6 +43,11 @@ class CoreSessionHandler {
if(strpos($sDomain, '.') === false)
$sDomain = null;
+ // Opera has problems with ip addresses in domains. So skip them
+ if(strpos($_SERVER['HTTP_USER_AGENT'], 'opera') !== false
+ && preg_match('/\d.\d+.\d+.\d+/', $sDomain))
+ $sDomain = null;
+
// Set custom params for the session cookie
session_set_cookie_params(0, $sPath, $sDomain);
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins