<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config/initializers/bigdecimal-segfault-fix.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -49,7 +49,7 @@ class ApplicationController &lt; ActionController::Base
   end
 
   def init_extplugin
-    @plugins= Dir.entries(RAILS_ROOT+&quot;/app/controllers/plugin/&quot;)
+    @plugins= Dir.entries(RAILS_ROOT+&quot;/app/controllers/plugins/&quot;)
     for plug in @plugins
       if plug.gsub!(/_controller.rb/,&quot;&quot;)
         if Extplugin.find_by_name(plug.to_s)==nil</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,6 +23,12 @@ protect_from_forgery :only =&gt; [:create, :update, :destroy]
     else
       @medias=Media.find(:all,:include=&gt;:comments,:order =&gt; &quot;medias.publicationdate DESC&quot; ,:conditions =&gt; [&quot;type_id=1 and medias.published=1 and ? &gt;=publicationdate and ((?&lt; expirationdate and expires='1') or expires='0')&quot;,Time.now,Time.now],:limit=&gt;10)
     end
+    respond_to do |format|
+      format.html # index.html.erb
+      format.xml  { render :xml =&gt; @medias }
+      format.json  { render :json =&gt; @medias }
+      format.atom
+    end
   end
   
   def listadmin</diff>
      <filename>app/controllers/media_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 ActionController::Routing::Routes.draw do |map|
   # The priority is based upon order of creation: first created -&gt; highest priority.
-
+  map.resources :users
+  map.resources :medias,:has_many=&gt;:comments
   # Sample of regular route:
   #   map.connect 'products/:id', :controller =&gt; 'catalog', :action =&gt; 'view'
   # Keep in mind you can assign values other than :controller and :action
@@ -25,20 +26,18 @@ ActionController::Routing::Routes.draw do |map|
   #   end
 
   # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
-  # map.root :controller =&gt; &quot;welcome&quot;
+  map.root :controller =&gt; &quot;media&quot;
 
   # See how all your routes lay out with &quot;rake routes&quot;
 
   # Install the default routes as the lowest priority.
   
-  map.connect '',:controller =&gt; &quot;media&quot;, :action =&gt; 'list'
-  map.connect '/', :controller =&gt; &quot;media&quot;, :action =&gt; 'list'
   map.connect 'media/page/:page',  :controller =&gt; 'media', :action =&gt; 'list', :page =&gt; /\d+/
   map.connect 'media/:year/:month/:day', :controller  =&gt; 'media',:action =&gt; 'find_by_date',:year =&gt; /\d{4}/, :day =&gt; nil, :month =&gt; nil
   map.connect 'media/:year/:month/:day/:title', :controller  =&gt; 'media',:action =&gt; 'permalink', :year =&gt; /\d{4}/
   map.connect 'media/category/:cat', :controller  =&gt; 'media',:action =&gt; 'show_category'
   map.connect 'media/tag/:tag', :controller  =&gt; 'media',:action =&gt; 'show_tag'
-  map.connect ':controller/service.wsdl', :action =&gt; 'wsdl'
+  
 
   # Install the default route as the lowest priority.
   map.connect ':controller/:action/:id'</diff>
      <filename>config/routes.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/views/plugin/flashgraph/.DS_Store</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/theme_support/.DS_Store</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>6e1eec7091c691847639a5ab459d93bbfaa12010</id>
    </parent>
  </parents>
  <author>
    <name>C&#233;dric Jolivet</name>
    <email>cedric@cedric-jolivets-macbook-pro-17.local</email>
  </author>
  <url>http://github.com/cedjo/mandarina2/commit/cc9fddeedc82fff747360af985d9a5014aee6408</url>
  <id>cc9fddeedc82fff747360af985d9a5014aee6408</id>
  <committed-date>2009-06-09T21:41:56-07:00</committed-date>
  <authored-date>2009-06-09T21:41:56-07:00</authored-date>
  <message>changes due to BigDecimal DoS vulnerability</message>
  <tree>4c59502953df38db67a78e87f0d95096f73c6e13</tree>
  <committer>
    <name>C&#233;dric Jolivet</name>
    <email>cedric@cedric-jolivets-macbook-pro-17.local</email>
  </committer>
</commit>
