ruby-saml-mod 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,9 +10,15 @@ module Onelogin::Saml
10
10
  @response = response
11
11
  @settings = settings
12
12
 
13
- @xml = Base64.decode64(@response)
14
- @document = LibXML::XML::Document.string(@xml)
15
- @document.extend(XMLSecurity::SignedDocument)
13
+ begin
14
+ @xml = Base64.decode64(@response)
15
+ @document = LibXML::XML::Document.string(@xml)
16
+ @document.extend(XMLSecurity::SignedDocument)
17
+ rescue => e
18
+ # could not parse document, everything is invalid
19
+ @response = nil
20
+ return
21
+ end
16
22
 
17
23
  @decrypted_document = LibXML::XML::Document.document(@document)
18
24
  @decrypted_document.extend(XMLSecurity::SignedDocument)
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{ruby-saml-mod}
3
- s.version = "0.1.9"
3
+ s.version = "0.1.10"
4
4
 
5
5
  s.authors = ["OneLogin LLC", "Bracken", "Zach", "Cody"]
6
- s.date = %q{2012-04-27}
6
+ s.date = %q{2012-04-30}
7
7
  s.extra_rdoc_files = [
8
8
  "LICENSE"
9
9
  ]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-saml-mod
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - OneLogin LLC
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2012-04-27 00:00:00 Z
21
+ date: 2012-04-30 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: libxml-ruby