string_master 0.3.15 → 0.3.16

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19b5af399f219345039bcd4ec0f325bcdce72c5e
4
- data.tar.gz: 164b109fdbe76b7c8d4dbb4d3f4c60fc958dce17
3
+ metadata.gz: ebf98f8d028c1ce3d495a0ff6404f0792911cc91
4
+ data.tar.gz: 5d9631c91e20a6a622e2b39e760cf96b0b66f52f
5
5
  SHA512:
6
- metadata.gz: 37be7730f2e9b4b92d9d436346b8f8100b4bfd7fd853ba17dd571d8119a559ae394211de0efe171f9d9ab23412ff9b80dfaa3a6dac0027c89360582e251bab7f
7
- data.tar.gz: 6706ffa60f78748a8888db2dea80ee48532e207c3cddee66d357366caaee67865d1dd48f2f156002d8ebb7447f3a697320ed0f44d9f301e3115d39ea0056deff
6
+ metadata.gz: dcacb75bedfa5ba732777e2dd860e9aeb4403f6f74c69eb3be911b043b8ab49cc14ef50e339f12193bc65bb3e9e9b0e32adc3a7f554a957c11f719eee70df2d1
7
+ data.tar.gz: 644e6806d797d0bffbb84e248cae8890dc845226aef030320ed758e34153acc292df8ea83b8606e6396227ec6d0aac132206b6f235fe13ea95f57da2bd1c2520
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.15
1
+ 0.3.16
@@ -43,6 +43,8 @@ class StringMaster
43
43
  h(tag)
44
44
  end
45
45
  end
46
+ # Convert all unclosed left tag brackets (<) into &lt;
47
+ @modified_string.gsub!(/(<)([^>]*\Z)/, '&lt;\2')
46
48
  self
47
49
  end
48
50
 
@@ -25,6 +25,9 @@ describe StringMaster do
25
25
 
26
26
  parser = StringMaster.new('xsstest<input/onfocus=prompt(document.cookie)autofocus>')
27
27
  parser.html_escape.to_s.should == 'xsstest&lt;input/onfocus=prompt(document.cookie)autofocus&gt;'
28
+
29
+ parser = StringMaster.new('xsstest"><input/onfocus=prompt() autofocus /=')
30
+ parser.html_escape.to_s.should == 'xsstest">&lt;input/onfocus=prompt() autofocus /='
28
31
  end
29
32
 
30
33
  it "makes images of urls that end with .jpg and other image extensions" do
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: string_master 0.3.15 ruby lib
5
+ # stub: string_master 0.3.16 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "string_master"
9
- s.version = "0.3.15"
9
+ s.version = "0.3.16"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko