diff options
author | robocoder <anthon.pang@gmail.com> | 2010-12-19 20:55:50 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-12-19 20:55:50 +0300 |
commit | 9414694ad3974b5709b5b7e8be2d862efc14f05f (patch) | |
tree | 693b64e42409f6c888c9793867fe1d1843774e8b /core/Nonce.php | |
parent | 21b2d996bdd82acc704c8a103143c43825695694 (diff) |
fixes #1901, refs #1592 - we can't use mock objects because of static method calls, so the wrappers around Zend_Session and Zend_Session_Namespace dummy initialize when executing from php-cli or headless php-cgi; this also addresses the hack by Parallels in their APS scripts
git-svn-id: http://dev.piwik.org/svn/trunk@3468 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Nonce.php')
-rw-r--r-- | core/Nonce.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Nonce.php b/core/Nonce.php index 7ef98d8878..55888ef137 100644 --- a/core/Nonce.php +++ b/core/Nonce.php @@ -35,7 +35,7 @@ class Piwik_Nonce static public function getNonce($id, $ttl = 300) { // save session-dependent nonce - $ns = new Zend_Session_Namespace($id); + $ns = new Piwik_Session_Namespace($id); $nonce = $ns->nonce; // re-use an unexpired nonce (a small deviation from the "used only once" principle, so long as we do not reset the expiration) @@ -60,7 +60,7 @@ class Piwik_Nonce */ static public function verifyNonce($id, $cnonce) { - $ns = new Zend_Session_Namespace($id); + $ns = new Piwik_Session_Namespace($id); $nonce = $ns->nonce; // validate token |