effective_datatables 4.20.0 → 4.20.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb9f04b853ac311223db59175787b3b9671a5e5eb74c97a393f5d575ac72f714
|
4
|
+
data.tar.gz: 4db05c99cee7e59f7cd4e36018246a8a37348380317511414ee07fbf4ff0d690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebe4d62789555527455fcd14bb7a90b75dc66274ee7ee76fcec1522a34e97d1db22074ceaef131b27dbac62744a678fd870c0b6d845d3eb723ef03a71f1bfebf
|
7
|
+
data.tar.gz: 1f705f91ad14fe6735e60771d2ab64717622d36da4da0291ba43683612b458400f7572b474634452a33793a175ce2f3fc0d86a1b66a610c9278ce9cf0e75b600
|
@@ -144,13 +144,19 @@ module Effective
|
|
144
144
|
when :text
|
145
145
|
if csv
|
146
146
|
value
|
147
|
-
elsif value.to_s.starts_with?('<') && value.ends_with?('>')
|
147
|
+
elsif value.to_s.starts_with?('<') && value.to_s.ends_with?('>')
|
148
148
|
view.sanitize(value.to_s)
|
149
149
|
else
|
150
150
|
view.simple_format(value.to_s)
|
151
151
|
end
|
152
152
|
when :string
|
153
|
-
csv
|
153
|
+
if csv
|
154
|
+
value
|
155
|
+
elsif value.to_s.starts_with?('<') && value.to_s.ends_with?('>')
|
156
|
+
view.sanitize(value.to_s)
|
157
|
+
else
|
158
|
+
view.escape_once(value.to_s)
|
159
|
+
end
|
154
160
|
else
|
155
161
|
value.to_s
|
156
162
|
end
|