1. 22 10月, 2009 1 次提交
  2. 18 10月, 2009 1 次提交
  3. 16 10月, 2009 1 次提交
  4. 15 10月, 2009 3 次提交
  5. 09 10月, 2009 1 次提交
  6. 08 10月, 2009 2 次提交
    • M
      error procs have to be safe too · c352ec06
      Michael Koziarski 提交于
      c352ec06
    • M
      Switch to on-by-default XSS escaping for rails. · 94159359
      Michael Koziarski 提交于
        This consists of:
      
        * String#html_safe! a method to mark a string as 'safe'
        * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it
        * Calls to String#html_safe! throughout the rails helpers
        * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB)
        * New ERB implementation based on erubis which uses a SafeBuffer instead of a String
      
      Hat tip to Django for the inspiration.
      94159359
  7. 04 10月, 2009 1 次提交
  8. 28 9月, 2009 2 次提交
  9. 14 9月, 2009 2 次提交
  10. 12 9月, 2009 1 次提交
  11. 04 9月, 2009 2 次提交
  12. 27 8月, 2009 3 次提交
  13. 16 8月, 2009 1 次提交
    • Y
      Got tests to pass with some more changes. · 1310231c
      Yehuda Katz 提交于
        * request.formats is much simpler now
          * For XHRs or Accept headers with a single item, we use the Accept header
          * For other requests, we use params[:format] or fallback to HTML
          * This is primarily to work around the fact that browsers provide completely
            broken Accept headers, so we have to whitelist the few cases we can
            specifically isolate and treat other requests as coming from the browser
          * For APIs, we can support single-item Accept headers, which disambiguates
            from the browsers
        * Requests to an action that only has an XML template from the browser will
          no longer find the template. This worked previously because most browsers
          provide a catch-all */*, but this was mostly accidental behavior. If you
          want to serve XML, either use the :xml format in links, or explicitly
          specify the XML template: render "template.xml".
      1310231c
  14. 10 8月, 2009 3 次提交
  15. 09 8月, 2009 7 次提交
  16. 08 8月, 2009 3 次提交
  17. 07 8月, 2009 1 次提交
  18. 05 8月, 2009 1 次提交
  19. 31 7月, 2009 1 次提交
  20. 29 7月, 2009 1 次提交
  21. 25 7月, 2009 1 次提交
  22. 21 7月, 2009 1 次提交