<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,7 +14,9 @@ module Giraffe
       # TODO: Probably horribly unsafe.
       #
       on(:get, [&quot;grep&quot;, :term]) {
-        @search = Rack::Utils.escape captured.term
+        @search = Rack::Utils.unescape captured.term
+        @search.delete! &quot;'`\&quot;\\&quot;
+        @search.gsub! &quot;$&quot;, &quot;\\$&quot;
 
         # TODO: May need further guarding here.
         @matches =  Giraffe.wiki!.grep(@search).select {|obj, match|</diff>
      <filename>resources/grep.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>46682b651a89fe63fdd6c66feb19cd811e0060c5</id>
    </parent>
  </parents>
  <author>
    <name>Eero Saynatkari</name>
    <email>projects@kittensoft.org</email>
  </author>
  <url>http://github.com/rue/giraffe/commit/16225d5916efc053f13b3b4e6b79f4a80d86fb70</url>
  <id>16225d5916efc053f13b3b4e6b79f4a80d86fb70</id>
  <committed-date>2009-01-21T10:00:44-08:00</committed-date>
  <authored-date>2009-01-21T10:00:44-08:00</authored-date>
  <message>Implement safer grep by removing quotes, ticks and backslashes.

* This can probably use a bunch of improvement.</message>
  <tree>bfa5e53ae85f2f965edca3ce7d108107fc33aa3b</tree>
  <committer>
    <name>Eero Saynatkari</name>
    <email>projects@kittensoft.org</email>
  </committer>
</commit>
