simple_calendar 3.1.1 → 3.1.2
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 +4 -4
- data/lib/simple_calendar/calendar.rb +8 -1
- data/lib/simple_calendar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1789f19b1f7e2ff7dfe9734bd1ef5a4ff45a76204c52f63155854fca76cc033
|
|
4
|
+
data.tar.gz: 7128d7d5d2f8a65d9377aafdd828edd8e30d8e7a2f56ca0f7ca7c95a81bb5928
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: acf827741610c4a259770cdf52da653156816c7bb75c31a1228b543ebcf5761b66c72b3594da14dd680c542947fd2b018629d0ccd089d7c685ef21704c30413a
|
|
7
|
+
data.tar.gz: 22f93c93d076483140e00c79ed33a8e194d3d1ad3624513fa7e9959be6107e5d1a7c5b9909464b98a1fbecfd3ec0a918293d51d12969aa9ff06f810992b6c051
|
|
@@ -2,7 +2,14 @@ require "rails"
|
|
|
2
2
|
|
|
3
3
|
module SimpleCalendar
|
|
4
4
|
class Calendar
|
|
5
|
-
|
|
5
|
+
# Besides form noise, this drops keys url_for treats as URL options instead of query
|
|
6
|
+
# params. Passing them through from the request would let a crafted link change the
|
|
7
|
+
# host, protocol, route, etc. of the Previous / Today / Next links (open redirect,
|
|
8
|
+
# javascript: XSS, 500s).
|
|
9
|
+
PARAM_KEY_BLACKLIST = :authenticity_token, :commit, :utf8, :_method, :script_name,
|
|
10
|
+
:host, :protocol, :port, :subdomain, :domain, :tld_length, :trailing_slash, :anchor,
|
|
11
|
+
:params, :only_path, :original_script_name, :relative_url_root, :user, :password,
|
|
12
|
+
:use_route, :_recall
|
|
6
13
|
|
|
7
14
|
attr_accessor :view_context, :options
|
|
8
15
|
|