corn_starch 1.9.51 → 1.9.52
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec13b05a5e519cf6b55fd9024e10c002ff06e6c3
|
4
|
+
data.tar.gz: e914d49aa27d74046aad3f4145e2276b16d4dca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 576f8635a66a382542dcde5345d427406323a23b199a46b02ccdb6f83da1c1c49500cd9b794f19adf083fc4f532f14c747b9879eaac1c717b21fc828f78893d1
|
7
|
+
data.tar.gz: 45c6b4e0cc4b4032df7061106c96a1237fec11f793c2b697d85da3a4d3739ead7609b11d49e1903f7de46435d83d0b65530b93ad204a5bc962564ad13cf58e27
|
@@ -246,18 +246,18 @@ module CornStarch
|
|
246
246
|
case action
|
247
247
|
|
248
248
|
# Session Control
|
249
|
-
when :login then notify_res 'gen_msg.login', result_or_name, name: uname
|
249
|
+
when :login then notify_res 'gen_msg.login', result_or_name, name: html_escape(uname)
|
250
250
|
when :logout then notify 'gen_msg.logout'
|
251
251
|
|
252
252
|
# Create / Update Resources
|
253
|
-
when :create then notify_res 'gen_msg.create', result_or_name, { model: model, name: ename
|
254
|
-
when :update then notify_res 'gen_msg.update', result_or_name, { model: model, name: ename
|
253
|
+
when :create then notify_res 'gen_msg.create', result_or_name, { model: model, name: html_escape(ename), errors: errors }, { model: model }
|
254
|
+
when :update then notify_res 'gen_msg.update', result_or_name, { model: model, name: html_escape(ename), errors: errors }, { model: model }
|
255
255
|
|
256
256
|
# Destroy Resources
|
257
|
-
when :destroy then notify 'gen_msg.destroy', { model: model, name: result_or_name
|
257
|
+
when :destroy then notify 'gen_msg.destroy', { model: model, name: html_escape(result_or_name) }, { model: model }
|
258
258
|
|
259
259
|
# Unknown Action
|
260
|
-
else notify 'gen_msg.unknown_action', action: action
|
260
|
+
else notify 'gen_msg.unknown_action', action: html_escape(action)
|
261
261
|
end
|
262
262
|
end
|
263
263
|
|
data/lib/corn_starch/version.rb
CHANGED