<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;tr class=&quot;&lt;%= article.status %&gt;&quot; id=&quot;article_&lt;%= article.id %&gt;&quot;&gt;
   &lt;td&gt;&lt;%= image_tag &quot;mephisto/icons/#{status_icon[article.status][1]}&quot;, :class =&gt; &quot;#{status_icon[article.status][0]} icon&quot;, :title =&gt; &quot;This article is #{article.status}&quot;, :alt =&gt; &quot;#{article.status}&quot; %&gt;&lt;/td&gt;
-  &lt;td class=&quot;article_title&quot;&gt;&lt;%= link_to(article.title, {:action =&gt; 'edit', :id =&gt; article}) %&gt;&lt;/td&gt;
+  &lt;td class=&quot;article_title&quot;&gt;&lt;%= link_to(h(article.title), {:action =&gt; 'edit', :id =&gt; article}) %&gt;&lt;/td&gt;
   &lt;td class=&quot;ccount&quot;&gt;
     &lt;% if article.comments.size == 0 %&gt;
       none</diff>
      <filename>app/views/admin/articles/_article.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
       &lt;li&gt;
         &lt;%= check_box_tag 'article[section_ids][]', section.id, @article.has_section?(section), 
               :id =&gt; &quot;article_section_ids_#{section.id}&quot; %&gt;
-        &lt;label for=&quot;article_section_ids_&lt;%= section.id %&gt;&quot;&gt;&lt;%= section.name %&gt;&lt;/label&gt;
+        &lt;label for=&quot;article_section_ids_&lt;%= section.id %&gt;&quot;&gt;&lt;%=h section.name %&gt;&lt;/label&gt;
       &lt;/li&gt;
     &lt;% end %&gt;
   &lt;/ul&gt;</diff>
      <filename>app/views/admin/articles/_shared_options.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 &lt;% with_options :controller =&gt; 'articles', :id =&gt; event.article_id do |article| -%&gt;
 &lt;li id=&quot;event-&lt;%= event.id %&gt;&quot; class=&quot;event-comment&lt;%= &quot; shade&quot; if shaded %&gt;&quot;&gt;
   &lt;div id=&quot;comment-&lt;%= event.comment_id %&gt;&quot;&gt;
-    &lt;%= link_to event.article.title, :controller =&gt; 'articles', :action =&gt; 'comments', :id =&gt; event.article_id, :anchor =&gt; &quot;comment-#{event.comment_id}&quot; %&gt; received a comment.
+    &lt;%= link_to h(event.article.title), :controller =&gt; 'articles', :action =&gt; 'comments', :id =&gt; event.article_id, :anchor =&gt; &quot;comment-#{event.comment_id}&quot; %&gt; received a comment.
   
     &lt;span class=&quot;event-time&quot;&gt;&lt;%= event_time_for event, later %&gt;&lt;/span&gt;
     &lt;% unless event.body.blank? -%&gt;</diff>
      <filename>app/views/admin/overview/_comment_event.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;li class=&quot;event-revision&lt;%= &quot; shade&quot; if shaded %&gt;&quot;&gt;
   &lt;span class=&quot;event-time&quot;&gt;&lt;%= event_time_for event, later %&gt;&lt;/span&gt;
   &lt;%= link_to h(event.title), :controller =&gt; 'articles', :action =&gt; 'show', :id =&gt; event.article_id %&gt; was created.
-  &lt;span class=&quot;meta&quot;&gt;by &lt;%= link_to who(event.user.login), :controller =&gt; 'users', :action =&gt; 'show', :id =&gt; event.user %&gt;&lt;/span&gt;
-&lt;/li&gt;
\ No newline at end of file
+  &lt;span class=&quot;meta&quot;&gt;by &lt;%= link_to h(who(event.user.login)), :controller =&gt; 'users', :action =&gt; 'show', :id =&gt; event.user %&gt;&lt;/span&gt;
+&lt;/li&gt;</diff>
      <filename>app/views/admin/overview/_create_event.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;li class=&quot;event-article&lt;%= &quot; shade&quot; if defined?(shaded) &amp;&amp; shaded == true %&gt;&quot;&gt;
   &lt;span class=&quot;event-time&quot;&gt;&lt;%= event_time_for event, later %&gt;&lt;/span&gt;
   &lt;%= link_to h(event.title), :controller =&gt; 'articles', :action =&gt; 'edit', :id =&gt; event.article_id %&gt; was created.
-  &lt;span class=&quot;meta&quot;&gt;by &lt;%= link_to who(event.user.login), :controller =&gt; 'users', :action =&gt; 'show', :id =&gt; event.user %&gt;&lt;/span&gt;
-&lt;/li&gt;
\ No newline at end of file
+  &lt;span class=&quot;meta&quot;&gt;by &lt;%= link_to h(who(event.user.login)), :controller =&gt; 'users', :action =&gt; 'show', :id =&gt; event.user %&gt;&lt;/span&gt;
+&lt;/li&gt;</diff>
      <filename>app/views/admin/overview/_publish_event.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -49,7 +49,7 @@
     &lt;h3&gt;Recent activity&lt;/h3&gt;
     &lt;ul class=&quot;slist&quot; id=&quot;activity&quot;&gt;
       &lt;% @users.each do |user| -%&gt;
-        &lt;li style=&quot;clear:right;&quot;&gt;&lt;%= avatar_for user %&gt;&lt;%= link_to who(user.login), :controller =&gt; 'users', :action =&gt; 'show', :id =&gt; user %&gt;&lt;br /&gt; showed up &lt;%=h distance_of_time_in_words_to_now(user.updated_at) %&gt; ago&lt;/li&gt;
+        &lt;li style=&quot;clear:right;&quot;&gt;&lt;%= avatar_for user %&gt;&lt;%= link_to h(who(user.login)), :controller =&gt; 'users', :action =&gt; 'show', :id =&gt; user %&gt;&lt;br /&gt; showed up &lt;%=h distance_of_time_in_words_to_now(user.updated_at) %&gt; ago&lt;/li&gt;
       &lt;% end -%&gt;
     &lt;/ul&gt;
   &lt;/div&gt;</diff>
      <filename>app/views/admin/overview/index.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 &lt;li id=&quot;&lt;%= user.dom_id %&gt;&quot; class=&quot;clear&lt;%= %( deleted) unless user.deleted_at.nil? %&gt;&lt;%= %( selected) if @user == user %&gt;&quot; fsdfa&gt;
     &lt;%= avatar_for user %&gt;
-    &lt;h3&gt;&lt;%= link_to user.login, :action =&gt; 'show', :id =&gt; user %&gt;&lt;/h3&gt;
-    &lt;%= user.email %&gt;
+    &lt;h3&gt;&lt;%= link_to h(user.login), :action =&gt; 'show', :id =&gt; user %&gt;&lt;/h3&gt;
+    &lt;%=h user.email %&gt;
   &lt;% unless user.admin? || user == current_user -%&gt;
     &lt;p&gt;
       &lt;%= check_box_tag user.dom_id(:user_toggle), user.id,  user.deleted_at.nil?, :onclick =&gt; &quot;UserForm.toggle(this);&quot; %&gt;
@@ -13,4 +13,4 @@
       &lt;%= image_tag 'mephisto/progress.gif', :size =&gt; '10x10', :style =&gt; 'display:none', :id =&gt; &quot;#{user.dom_id}-progress&quot; %&gt;
     &lt;/p&gt;
   &lt;% end -%&gt;
-&lt;/li&gt;
\ No newline at end of file
+&lt;/li&gt;</diff>
      <filename>app/views/admin/users/_user.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -26,7 +26,7 @@
         &lt;li&gt;&lt;%= link_to 'Logout', { :controller =&gt; '/account', :action =&gt; 'logout' }, :method =&gt; :post %&gt;&lt;/li&gt;
       &lt;/ul&gt;
 
-      &lt;h1&gt;&lt;%= link_to &quot;#{site.title} &amp;mdash; Admin&quot;, { :controller =&gt; '/admin/overview' }, :title =&gt; &quot;#{site.title} admin&quot; %&gt;&lt;/h1&gt;
+      &lt;h1&gt;&lt;%= link_to &quot;#{h site.title} &amp;mdash; Admin&quot;, { :controller =&gt; '/admin/overview' }, :title =&gt; &quot;#{site.title} admin&quot; %&gt;&lt;/h1&gt;
 
       &lt;!-- div.nav --&gt;  
       &lt;div id=&quot;nav&quot;&gt;</diff>
      <filename>app/views/layouts/application.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -3,16 +3,16 @@
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
   &lt;head&gt;
     &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;   
-    &lt;title&gt;Mephisto: &lt;%= controller.controller_name %&gt; Admin&lt;/title&gt;
+    &lt;title&gt;Mephisto: &lt;%=h controller.controller_name %&gt; Admin&lt;/title&gt;
     &lt;%= stylesheet_link_tag 'mephisto/fullscreen' %&gt;
     &lt;%= javascript_include_tag 'mephisto/prototype', 'mephisto/effects', 'mephisto/lowpro', 'mephisto/application' %&gt;
     &lt;script type=&quot;text/javascript&quot;&gt;Mephisto.root = '&lt;%= relative_url_root %&gt;';&lt;/script&gt;
   &lt;/head&gt;
-  &lt;body id=&quot;body-&lt;%= controller.controller_name %&gt;&quot;&gt;
+  &lt;body id=&quot;body-&lt;%=h controller.controller_name %&gt;&quot;&gt;
   
       &lt;!-- div.header --&gt;
       &lt;div id=&quot;header&quot;&gt;
-        &lt;h1&gt;&lt;%= link_to &quot;#{site.title} &amp;mdash; Admin&quot;, { :controller =&gt; '/admin/overview' }, :title =&gt; &quot;#{site.title} admin&quot; %&gt;&lt;/h1&gt;
+        &lt;h1&gt;&lt;%= link_to &quot;#{h site.title} &amp;mdash; Admin&quot;, { :controller =&gt; '/admin/overview' }, :title =&gt; &quot;#{site.title} admin&quot; %&gt;&lt;/h1&gt;
       &lt;/div&gt;
       &lt;!-- /div.header --&gt;
         
@@ -20,8 +20,8 @@
       
       &lt;!-- div.content --&gt;
       &lt;div id=&quot;fullscreen&quot;&gt;
-        &lt;div id=&quot;flash-errors&quot; style=&quot;display: none;&quot;&gt;&lt;%= flash[:error] %&gt;&lt;/div&gt;
-        &lt;div id=&quot;flash-notice&quot; style=&quot;display:none&quot;&gt;&lt;%= flash[:notice] %&gt;&lt;/div&gt;
+        &lt;div id=&quot;flash-errors&quot; style=&quot;display: none;&quot;&gt;&lt;%=h flash[:error] %&gt;&lt;/div&gt;
+        &lt;div id=&quot;flash-notice&quot; style=&quot;display:none&quot;&gt;&lt;%=h flash[:notice] %&gt;&lt;/div&gt;
         
         &lt;!-- div.left --&gt;
         &lt;div id=&quot;main&quot;&gt;</diff>
      <filename>app/views/layouts/simple.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a83309dbc833ce1ef255ac65275ba498115d1040</id>
    </parent>
  </parents>
  <author>
    <name>Eric Kidd</name>
    <login>emk</login>
    <email>git@randomhacks.net</email>
  </author>
  <url>http://github.com/emk/mephisto/commit/7a20455fab59441d15e261172aa9fac109eb3893</url>
  <id>7a20455fab59441d15e261172aa9fac109eb3893</id>
  <committed-date>2008-12-11T16:05:37-08:00</committed-date>
  <authored-date>2008-12-11T16:05:37-08:00</authored-date>
  <message>Security: Escape more strings

The sqlite3_ruby database adapter does not correctly taint strings
unless you first apply this patch:

  http://rubyforge.org/tracker/index.php?func=detail&amp;aid=20325&amp;group_id=254&amp;atid=1045

With this patch applied, SafeERB finds more errors.  These are now
fixed.  It would be highly desirable to update SafeERB and modify it for
production use with Rails 2.2.</message>
  <tree>eb43abe7ea4ced62e2f3cdc99532039644227102</tree>
  <committer>
    <name>Eric Kidd</name>
    <login>emk</login>
    <email>git@randomhacks.net</email>
  </committer>
</commit>
