sqreen 1.8.4-java → 1.8.5-java

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: 5a207be9e2f7828fee35541e9d87d2af291b6139
4
- data.tar.gz: 718c476ee596ae0e26b5f0a90ffe238573450c35
3
+ metadata.gz: 5e1e52d6cf9228df5024c1fd53a95b4bf48c6a1e
4
+ data.tar.gz: 95f03d519edc6573cd1adbd2fad3062a8dabbf31
5
5
  SHA512:
6
- metadata.gz: 6de34161fab960509c0e48f64e404d1914135086acd97a95e0d8c8efe2d2bc86e414fa1e92d92508a5556d92d84c75705189bdbb094cabbbc36f88acf5d0ae34
7
- data.tar.gz: c052dc1011c91e97f611607dc7e34e6c00df0a903e7f77aec6ddc4247b8f99fb74884e66bbc225ac71547582e3b851f97e6b1fac2a9fb85b6c843a8b7c7b5251
6
+ metadata.gz: 69de15850bc5d6be5e287d924601342691edf1ace680956ec82aed6c1cba6a5d427ae8d703aff4b9a8ab2bb15571b54ea6f722596f29fc9de2200118f25f005c
7
+ data.tar.gz: 304174a40d56166d231e4e218f0733949d2e480434e7ef82c0fcb2350123b5b5d0888bcc051f76862f431dd5063012f9c3beaa9db6b8ba93d4fe57a7ee670967
@@ -90,7 +90,7 @@ module Sqreen
90
90
  if escape_html == false &&
91
91
  text.respond_to?(:include?) &&
92
92
  !text.include?('html_escape')
93
- args[0].replace("Sqreen.escape_haml(#{args[0]})")
93
+ args[0].replace("Sqreen.escape_haml((#{args[0]}))")
94
94
  end
95
95
  nil
96
96
  end
@@ -104,7 +104,7 @@ module Sqreen
104
104
  if tag.value[:escape_html] == false &&
105
105
  tag.value[:value].respond_to?(:include?) &&
106
106
  !tag.value[:value].include?('html_escape')
107
- tag.value[:value] = "Sqreen.escape_haml(#{tag.value[:value]})"
107
+ tag.value[:value] = "Sqreen.escape_haml((#{tag.value[:value]}))"
108
108
  return { :status => :override, :new_return_value => tag }
109
109
  end
110
110
  nil
@@ -126,7 +126,7 @@ module Sqreen
126
126
  else
127
127
  content = eval('"' + Haml::Util.balance(scan, '{', '}', 1)[0][0...-1] + '"')
128
128
  content = "Haml::Helpers.html_escape((#{content}))" if escape_html
129
- res << '#{Sqreen.escape_haml(' + content + ')}' # Use eval to get rid of string escapes
129
+ res << '#{Sqreen.escape_haml((' + content + '))}' # Use eval to get rid of string escapes
130
130
  end
131
131
  end
132
132
  { :status => :skip, :new_return_value => res + rest }
@@ -180,7 +180,7 @@ module Sqreen
180
180
 
181
181
  class Haml5EscapableHookCB < RuleCB
182
182
  def pre(_inst, *args, &_block)
183
- args[0] = "Sqreen.escape_haml(#{args[0]})"
183
+ args[0] = "Sqreen.escape_haml((#{args[0]}))"
184
184
  { :status => :modify_args, :args => args }
185
185
  end
186
186
  end
@@ -188,7 +188,7 @@ module Sqreen
188
188
  # Hook into temple template rendering
189
189
  class TempleEscapableHookCB < RuleCB
190
190
  def post(ret, _inst, *_args, &_block)
191
- ret[1] = "Sqreen.escape_temple(#{ret[1]})"
191
+ ret[1] = "Sqreen.escape_temple((#{ret[1]}))"
192
192
  { :status => :override, :new_return_value => ret }
193
193
  end
194
194
  end
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  module Sqreen
4
- VERSION = '1.8.4'.freeze
4
+ VERSION = '1.8.5'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: java
6
6
  authors:
7
7
  - Sqreen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs