thecore_ui_commons 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26bdeaf5435a5af8fe6cac3e39a5b1b80f54182ef4ff80c0253ef831c0094f8a
|
|
4
|
+
data.tar.gz: 7e8f11d15ce77fdda026ab57c102aa8d3437c248c32d5a851f2119077e55c491
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2b5cb232de627f718aa501e1a9ef9e36b0731868147bc8f57134742677ab4b62925376a75350d308f3a10560a4aea93f991a3cc9b65f00ce4d99eafee021b12
|
|
7
|
+
data.tar.gz: ff30f188889e271191925b6f0ccc1a3eedbc4dc6beca2c8911a876ebdfdb35825d76dd6296954fdd9b76f16096f0e03131f64f90a1e6a72acefa29d11ce24b3a
|
data/config/brakeman.ignore
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"cwe_id": [
|
|
21
21
|
352
|
|
22
22
|
],
|
|
23
|
-
"note": "False positive (host Odoo #5884). config/initializers/after_initialize.rb includes ConcernCommonApplicationController into ApplicationController, and that concern calls protect_from_forgery prepend: true. Brakeman reads the class body only and can't see a module included at boot."
|
|
23
|
+
"note": "False positive (host Odoo #5884). config/initializers/after_initialize.rb includes ConcernCommonApplicationController into ApplicationController, and that concern calls protect_from_forgery with: :null_session, prepend: true. Brakeman reads the class body only and can't see a module included at boot. :null_session is deliberate (GitHub #7): a forged sign-in or sign-out runs against a throwaway session, so it neither creates nor ends one; test/integration/forgery_null_session_test.rb pins it."
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"brakeman_version": "8.1.0"
|
|
@@ -5,8 +5,9 @@ module ConcernCommonApplicationController
|
|
|
5
5
|
extend ActiveSupport::Concern
|
|
6
6
|
|
|
7
7
|
included do
|
|
8
|
-
#
|
|
9
|
-
|
|
8
|
+
# :null_session on purpose (GitHub #7): a tokenless request gets a throwaway session and cookie
|
|
9
|
+
# jar, so a forged sign-in or sign-out neither creates nor ends a session.
|
|
10
|
+
protect_from_forgery with: :null_session, prepend: true
|
|
10
11
|
|
|
11
12
|
rescue_from CanCan::AccessDenied do |exception|
|
|
12
13
|
redirect_to main_app.root_url, alert: exception.message
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thecore_ui_commons
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.5.
|
|
4
|
+
version: 3.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriele Tassoni
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thecore_backend_commons
|