Ver Fonte

Merge pull request #1398 from Alkarex/MultipleCookiesBug

Send cookie FreshRSS_login only once
Alexandre Alapetite há 9 anos atrás
pai
commit
eded493796
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 0
      CHANGELOG.md
  2. 1 1
      app/Models/Auth.php

+ 1 - 0
CHANGELOG.md

@@ -17,6 +17,7 @@
 	* Fix small bugs in installer [#1363](https://github.com/FreshRSS/FreshRSS/pull/1363)
 	* Allow slash in database hostname, when using sockets [#1364](https://github.com/FreshRSS/FreshRSS/issues/1364)
 	* Add curl user-agent to retrieve favicons [#1380](https://github.com/FreshRSS/FreshRSS/issues/1380)
+	* Send login cookie only once [#1398](https://github.com/FreshRSS/FreshRSS/pull/1398)
 	* Add a check for PHP extension fileinfo [#1375](https://github.com/FreshRSS/FreshRSS/issues/1375)
 
 

+ 1 - 1
app/Models/Auth.php

@@ -238,8 +238,8 @@ class FreshRSS_FormAuth {
 
 	public static function deleteCookie() {
 		$token = Minz_Session::getLongTermCookie('FreshRSS_login');
-		Minz_Session::deleteLongTermCookie('FreshRSS_login');
 		if (ctype_alnum($token)) {
+			Minz_Session::deleteLongTermCookie('FreshRSS_login');
 			@unlink(DATA_PATH . '/tokens/' . $token . '.txt');
 		}