<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -561,7 +561,7 @@ or start a new game by typing 'new game'\n&quot;
       res.cookies.push([Cookie.new('gogar', session.to_s)])
     end
     game = @@games[session]
-    command = req.query['command'] || &quot;&quot; 
+    command = req.query['command'].gsub(/&lt;/,&quot;&amp;lt;&quot;).gsub(/&gt;/,&quot;&amp;gt;&quot;) || &quot;&quot;
     res['Content-Type'] = &quot;text/html&quot;
     res.status = 200
     answer = game.command(command)</diff>
      <filename>gogar.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>170ef1f08126fbf1b3bc7256a4a55bcd51bfb06e</id>
    </parent>
  </parents>
  <author>
    <name>John MacFarlane</name>
    <email>jgm@berkeley.edu</email>
  </author>
  <url>http://github.com/jgm/gogar/commit/1079dbfd54ebf9d0f737759603ba101d0adebcae</url>
  <id>1079dbfd54ebf9d0f737759603ba101d0adebcae</id>
  <committed-date>2008-11-10T07:42:27-08:00</committed-date>
  <authored-date>2008-11-10T07:42:27-08:00</authored-date>
  <message>Filter input in webserver to prevent XSS attacks.</message>
  <tree>ba73d3e90949acfe54502d7dfb64ee12c543265f</tree>
  <committer>
    <name>John MacFarlane</name>
    <email>jgm@berkeley.edu</email>
  </committer>
</commit>
