Commit 75a9f70
committed
update base64 format check:
* the main change here is adding `\\r` and `\\n` to the `gsub`
in the check method. we were seeing a base64-encoded
`SAMLResponse` parameter value come through with these
extra escape characters and this solves is the issue.
* extract the regexp for base64 format to a constant value
to avoid additional unnecessary object allocations
* rename `is_base64?` to `base64_formatted?` since `rubocop`
complains about methods starting with `is_`1 parent 585fc93 commit 75a9f70
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
0 commit comments