Procházet zdrojové kódy

Fix global view CSRF

https://github.com/FreshRSS/FreshRSS/issues/1591
Alexandre Alapetite před 8 roky
rodič
revize
2fd5ab8c55
2 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 1 0
      CHANGELOG.md
  2. 3 0
      p/scripts/global_view.js

+ 1 - 0
CHANGELOG.md

@@ -18,6 +18,7 @@
 	* Fix API compatibility bug between PostgreSQL and EasyRSS [#1603](https://github.com/FreshRSS/FreshRSS/pull/1603)
 	* Fix PostgreSQL error when adding entries with duplicated GUID [#1610](https://github.com/FreshRSS/FreshRSS/issues/1610)
 	* Fix for RSS feeds containing HTML in author field [#1590](https://github.com/FreshRSS/FreshRSS/issues/1590)
+	* Fix logout issue in global view due to CSRF [#1591](https://github.com/FreshRSS/FreshRSS/issues/1591)
 * Misc.
 	* Travis continuous integration [#1619](https://github.com/FreshRSS/FreshRSS/pull/1619)
 	* Allow longer database usernames [#1597](https://github.com/FreshRSS/FreshRSS/issues/1597)

+ 3 - 0
p/scripts/global_view.js

@@ -33,6 +33,9 @@ function load_panel(link) {
 			$.ajax({
 				type: "POST",
 				url: $(this).attr("formaction"),
+				data : {
+					_csrf: context.csrf,
+				},
 				async: false
 			});
 			window.location.reload(false);