scms 4.2.4 → 4.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NWI5MmI3NjMwMGM3MWNkMTNhZjM1NGM2OTg4N2Y1NzIxYmY5NWUyMw==
4
+ MzQ5Mzk5NDlkOTllY2EzNThiOTRkN2RiMGVkYmI0ZGViMmUwYzQyNA==
5
5
  data.tar.gz: !binary |-
6
- ODRjY2QzODk0NjU5YTlkZTUzMTYwZDA0N2UwNzQwOGMxNWVlZGViYQ==
6
+ NTUwNWNlMDE5MjBjZmU4Zjk4NDExNzRhYzg0ZTAyZDI5YTY2OTY3Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTNjOGQ1N2RjMGUzNGVlNjVkNjJkOTNkYWIzYjI5YjMxZGNkYzkzZmZjZDQ5
10
- MjIzNTk3OTczZTE2NWRmMTU2NzQwNDI2NGNkM2RmNGMyZWY2MzMxMjg5NWU5
11
- NDBkMjdiNjkxOGMzYjE4ZTY3NzYzMmU3YzQyZDJkZDNhNDc1M2M=
9
+ MWE2YzE2NjFmNDI2NDA1Y2Y3YjRmMDc0NWZmODIzNjVmZDI3NzI5ODk4MTll
10
+ ZmJjNGNhMGQ5N2MzOGViM2VlZDYxYzEzMWExNzQ0YmE5NjA0NzJjMjNkMmMz
11
+ MGU2YjQ1YjMxYWIzNTUzNTI5OTgwNDc0ZWE4MzBmZTk2NWJiNDk=
12
12
  data.tar.gz: !binary |-
13
- OTI5MTdmZWZhMTViZWE5ZDMyNDdkYWU0ZmYwNDcwYjQxZDc2ZDE3MGI3MDgz
14
- YWYyYTk5M2MzZTY4MDVhYzg4MDgxMWY2NjQ1Y2EyM2QyODcxYjVlOWE3NDQ0
15
- OWJkOTMzZGMyNjdiZGU4OTJlY2M3MTQ0NTJhNmM1NDg4YTBkNDY=
13
+ ZDc5YmE3NGFhMGI0MTE0NDU5NTRmMjU3ZTMzZWE3NGY2OGRmOGUwZGJlNmVi
14
+ ZWM5ZjJjNjJkNjRiYjRjY2IzMzM2MTYyNDQzOGQ1MDNiN2U0M2NhMDc5MjE2
15
+ YzJiYTllYThlYzc0Nzc3YzY3YmVmNGQwYWNiYjQzYzRmMGEzMzQ=
@@ -32,6 +32,7 @@ module Scms
32
32
  page = @model
33
33
  erb = ERB.new(@template)
34
34
  result = erb.result(page.instance_eval { binding })
35
+ result = result.encode('UTF-8', :invalid => :replace, :undef => :replace)
35
36
 
36
37
  # only do cms click edit on sub views not layout templates
37
38
  if page.view != nil
@@ -101,6 +101,7 @@ module ScmsUtils
101
101
 
102
102
  def ScmsUtils.txt_2_html(rawsnippet)
103
103
  if rawsnippet != nil
104
+ rawsnippet = rawsnippet.encode('UTF-8', :invalid => :replace, :undef => :replace, :replace => "")
104
105
  rawsnippet.gsub!(/(http:\/\/\S+)/, '<a href="\1" target="_blank" ref="external">\1</a>')
105
106
  rawsnippet.gsub!(/(file:\/\/\/\S+)/, '<a href="\1" target="_blank" ref="external">\1</a>')
106
107
  rawsnippet.gsub!(/\n/, "<br />")
data/lib/scms/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Scms
2
- VERSION = "4.2.4"
2
+ VERSION = "4.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.4
4
+ version: 4.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courtenay Probert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-07 00:00:00.000000000 Z
11
+ date: 2013-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cprobert-s3sync