<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,50 +22,3 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.rdoc_files.include('README')
   rdoc.rdoc_files.include('lib/**/*.rb')
 end
-
-# Globals
-
-PKG_NAME = 'active_scaffold_plugin'
-PKG_VERSION = '1.0'
-
-PKG_FILES = ['README', 'CHANGELOG', 'MIT-LICENSE', 'init.rb', 'install.rb']
-PKG_DIRECTORIES = ['app/', 'lib/', 'public/', 'tasks/', 'test/']
-PKG_DIRECTORIES.each do |dir|
-  Find.find(dir) do |f|
-    if FileTest.directory?(f) and f =~ /\.svn/
-      Find.prune
-    else
-      PKG_FILES &lt;&lt; f
-    end
-  end
-end
-
-# Tasks
-
-task :package
-Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |p|
-        p.need_tar = true
-        p.package_files = PKG_FILES
-end
-
-# &quot;Gem&quot; part of the Rakefile
-begin
-        require 'rake/gempackagetask'
-
-        spec = Gem::Specification.new do |s|
-                s.platform = Gem::Platform::RUBY
-                s.summary = &quot;ActiveScaffold is a Rails plugin for rich ActiveRecord CRUD.&quot;
-                s.name = PKG_NAME
-                s.version = PKG_VERSION
-                s.requirements &lt;&lt; 'none'
-                s.files = PKG_FILES
-                s.description = &quot;ActiveScaffold is a Rails plugin for rich ActiveRecord CRUD.&quot;
-        end
-
-        task :package_gem
-        Rake::GemPackageTask.new(spec) do |pkg|
-                pkg.need_zip = true
-                pkg.need_tar = true
-        end
-rescue LoadError
-end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -23,7 +23,7 @@
 
   &lt;label for=&quot;&lt;%= &quot;record_#{active_scaffold_config.model}&quot; %&gt;&quot;&gt;&lt;%= active_scaffold_config.model %&gt;&lt;/label&gt;
   &lt;%# select_options = options_for_select(options_for_association(nested_association)) unless column.through_association? -%&gt;
-  &lt;% select_options ||= options_for_select(active_scaffold_config.model.find(:all).collect {|c| [c.to_label, c.id]}) -%&gt;
+  &lt;% select_options ||= options_for_select(active_scaffold_config.model.find(:all).collect {|c| [h(c.to_label), c.id]}) -%&gt;
   &lt;% unless select_options.empty? -%&gt;
     &lt;%= select_tag 'associated_id', '&lt;option value=&quot;&quot;&gt;' + as_('- select -') + '&lt;/option&gt;' + select_options %&gt;
   &lt;% end -%&gt;</diff>
      <filename>frontends/default/views/_add_existing_form.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
     &lt;% unless readonly -%&gt;
       &lt;%= render :partial =&gt; form_partial_for_column(column), :locals =&gt; { :column =&gt; column, :scope =&gt; scope } -%&gt;
     &lt;% else -%&gt;
-      &lt;p&gt;&lt;%= @record.send(column.name) -%&gt;&lt;/p&gt;
+      &lt;p&gt;&lt;%= h @record.send(column.name) -%&gt;&lt;/p&gt;
     &lt;% end -%&gt;
   &lt;/td&gt;
 &lt;% end -%&gt;</diff>
      <filename>frontends/default/views/_form_association_record.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,10 @@
 &lt;% for name in [:info, :warning, :error] %&gt;
   &lt;% if flash[name] %&gt;
     &lt;p class=&quot;&lt;%= &quot;#{name}-message message&quot; %&gt;&quot; &gt;
-      &lt;%= flash[name] %&gt;
+      &lt;%= h flash[name] %&gt;
       &lt;% if request.xhr? %&gt;
         &lt;a href=&quot;#&quot; onclick=&quot;Element.remove(this.parentNode); return false;&quot;&gt;&lt;%= as_('Close') %&gt;&lt;/a&gt;
       &lt;% end %&gt;
     &lt;/p&gt;
   &lt;% end %&gt;
-&lt;% end %&gt;
\ No newline at end of file
+&lt;% end %&gt;</diff>
      <filename>frontends/default/views/_messages.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -35,7 +35,7 @@
         concat render(:active_scaffold =&gt; controller.controller_path,
           :constraints =&gt; @constraints,
           :conditions =&gt; association.options[:conditions],
-          :label =&gt; @label,
+          :label =&gt; h(@label),
           :params =&gt; {:nested =&gt; true, :parent_column =&gt; column_name, :parent_model =&gt; association.active_record}
         ), binding
       end</diff>
      <filename>frontends/default/views/_nested.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -27,7 +27,7 @@ else
 end
 %&gt;
 
-  &lt;h4&gt;&lt;%= @record.to_label.nil? ? active_scaffold_config.update.label : as_('Update %s', @record.to_label) %&gt;&lt;/h4&gt;
+  &lt;h4&gt;&lt;%= @record.to_label.nil? ? active_scaffold_config.update.label : as_('Update %s', clean_column_value(@record.to_label)) %&gt;&lt;/h4&gt;
 
   &lt;% if request.xhr? -%&gt;
     &lt;div id=&quot;&lt;%= element_messages_id(:action =&gt; :update) %&gt;&quot; class=&quot;messages-container&quot;&gt;&lt;%= error_messages_for :record %&gt;&lt;/div&gt;
@@ -46,4 +46,4 @@ end
 &lt;/form&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
 Form.focusFirstElement('&lt;%= element_form_id(:action =&gt; :update) -%&gt;');
-&lt;/script&gt;
\ No newline at end of file
+&lt;/script&gt;</diff>
      <filename>frontends/default/views/_update_form.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7b6991efd2568a6ae5ecd7e0c00b9d150c80ec7e</id>
    </parent>
  </parents>
  <author>
    <name>cainlevy</name>
    <email>cainlevy@561dde7e-7729-0410-be8e-ef83869d6c7d</email>
  </author>
  <url>http://github.com/edwinmoss/active_scaffold/commit/77bf6d56b86de39bd44ad535f19e151b3ed89b10</url>
  <id>77bf6d56b86de39bd44ad535f19e151b3ed89b10</id>
  <committed-date>2007-12-03T16:41:14-08:00</committed-date>
  <authored-date>2007-12-03T16:41:14-08:00</authored-date>
  <message>cleaning up rake tasks (folder, and gem packaging task)
closing a few XSS holes (thanks dov)


git-svn-id: http://activescaffold.googlecode.com/svn/trunk@693 561dde7e-7729-0410-be8e-ef83869d6c7d</message>
  <tree>626d4dcbfb1ae01f4767ef07a7ba859370125f3e</tree>
  <committer>
    <name>cainlevy</name>
    <email>cainlevy@561dde7e-7729-0410-be8e-ef83869d6c7d</email>
  </committer>
</commit>
