<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,8 +3,9 @@ module CssSanitize
 
   def custom_css=(text)
     # Mostly stolen from http://code.sixapart.com/svn/CSS-Cleaner/trunk/lib/CSS/Cleaner.pm
-    text = &quot;Error: invalid/disallowed characters in CSS&quot; if text =~ /\w\/\/*/ # a comment immediately following a letter
-    text = &quot;Error: invalid/disallowed characters in CSS&quot; if text =~ /\/\*\// # /*/ --&gt; hack attempt, IMO
+    text = &quot;Error: invalid/disallowed characters in CSS&quot; if text =~ /(\w\/\/)/    # a// comment immediately following a letter
+    text = &quot;Error: invalid/disallowed characters in CSS&quot; if text =~ /(\w\/\/*\*)/ # a/* comment immediately following a letter
+    text = &quot;Error: invalid/disallowed characters in CSS&quot; if text =~ /(\/\*\/)/            # /*/ --&gt; hack attempt, IMO
 
     # Now, strip out any comments, and do some parsing.
     no_comments = text.gsub(/(\/\*.*?\*\/)/, &quot;&quot;) # filter out any /* ... */</diff>
      <filename>lib/css_sanitize.rb</filename>
    </modified>
    <modified>
      <diff>@@ -63,9 +63,13 @@ STR
       @site.custom_css = string
       @site.custom_css.should == &quot;Error: invalid/disallowed characters in CSS&quot;
     end
-
+  end
+  
+  
+  it &quot;allows good css&quot; do
     good_strings = [
       &quot;.test { color: red; border: 1px solid brown; }&quot;,
+      &quot;h1 { background: url(http://foobar.com/meh.jpg)}&quot;,
       &quot;div.foo { width: 500px; height: 200px; }&quot;,
       &quot;GI b gkljfl kj { { { ********&quot; # gibberish, but should work.
     ]
@@ -108,9 +112,4 @@ STR
     @site.custom_css.should == &quot;Error: invalid/disallowed characters in CSS&quot;
   end
 
-  it &quot;allows good css&quot; do
-    @site.custom_css = &quot;a:link { color: red }&quot;
-    @site.custom_css.should == &quot;a:link { color: red }&quot;
-  end
-
 end
\ No newline at end of file</diff>
      <filename>test/css_sanitize_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d2be0fecf753bcff9ccb7bf96c4172a23d526e26</id>
    </parent>
  </parents>
  <author>
    <name>c3</name>
    <email>courtenay@entp.com</email>
  </author>
  <url>http://github.com/courtenay/css_file_sanitize/commit/f889f4fa7b6e5a18474685c22dcad631561032d6</url>
  <id>f889f4fa7b6e5a18474685c22dcad631561032d6</id>
  <committed-date>2008-11-21T12:58:49-08:00</committed-date>
  <authored-date>2008-11-21T12:58:49-08:00</authored-date>
  <message>Fix up issues related to http://foo.com/a/blah.jpg</message>
  <tree>3cc56a002139ab2e8ceafe0875d94a94e113cfb2</tree>
  <committer>
    <name>c3</name>
    <email>courtenay@entp.com</email>
  </committer>
</commit>
