Hi everybody! Rails 3.0.6 has been released!
Let's get the serious business out of the way first:
Rails versions 3.0.x prior to 3.0.6 contain an XSS vulnerability. The
vulnerability manifests itself via the auto_link method. The auto_link
| #!/usr/bin/env ruby | |
| # Convert Trac DB Wiki pages to Markdown source files | |
| # This script is based on http://github.com/seven1m/trac_wiki_to_github which | |
| # converted all pages from a Trac DB to GitHub Wiki format (as Textile). | |
| # | |
| # I made two changes: | |
| # - uses MarkDown format instead | |
| # - uses the sqllite3-ruby gem which does not need Ruby 1.9 |
| #!/bin/bash | |
| for path in /usr/src/linux-*; do | |
| version=${path#*/linux-} | |
| if qfile $path > /dev/null; then | |
| echo "$version: skip" | |
| else | |
| echo "$version: removing" | |
| cmd="rm -rf $path /lib/modules/$version /boot/*-$version /boot/*-$version.old" |
Hi everybody! Rails 3.0.6 has been released!
Let's get the serious business out of the way first:
Rails versions 3.0.x prior to 3.0.6 contain an XSS vulnerability. The
vulnerability manifests itself via the auto_link method. The auto_link
| <?xml version="1.0"?> | |
| <root> | |
| <list> | |
| <item> | |
| <name>Handy Underscore</name> | |
| <list> | |
| <item> | |
| <name>Command_R to Command_R</name> | |
| <appendix>(+ When you type Command_R only, send Underscore)</appendix> | |
| <identifier>remap.commandR2commandR_underscore</identifier> |
| Index: hiki/util.rb | |
| =================================================================== | |
| --- hiki/util.rb (revision 1101) | |
| +++ hiki/util.rb (working copy) | |
| @@ -61,7 +61,7 @@ | |
| # # => "%27Stop%21%27+said+Fred" | |
| def escape(string) | |
| string.gsub(/([^ a-zA-Z0-9_.-]+)/n) do | |
| - '%' + $1.unpack('H2' * $1.size).join('%').upcase | |
| + '%' + $1.unpack('H2' * $1.bytesize).join('%').upcase |
| From 9fbd75b0ba43d2e37aae4ed1b48752baa1908cd3 Mon Sep 17 00:00:00 2001 | |
| From: Akinori MUSHA <[email protected]> | |
| Date: Tue, 5 Jul 2011 11:00:32 +0900 | |
| Subject: [PATCH] Make copy() also save the selected text in rich text format. | |
| --- | |
| Headers/iTerm/PTYTextView.h | 2 + | |
| PTYTextView.m | 161 +++++++++++++++++++++++++++++++++++++++++- | |
| 2 files changed, 159 insertions(+), 4 deletions(-) |
| diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb | |
| index 856a34a..20654fd 100644 | |
| --- a/Library/Formula/emacs.rb | |
| +++ b/Library/Formula/emacs.rb | |
| @@ -28,6 +28,7 @@ class Emacs < Formula | |
| def patches | |
| p = [] | |
| + p0 = [] | |
| #!/usr/bin/env ruby | |
| require "nokogiri" | |
| # opens every file in the given dir tree and converts any html img tags to rails image_tag calls | |
| # | |
| # example usage: | |
| # ruby convert.rb ~/my_rails_app/app/views | |
| # | |
| # ***be careful and backup before using this*** | |
| # |
| #!/usr/bin/python | |
| # vim:set fileencoding=utf-8 sw=2 ai: | |
| import sqlite3 | |
| import datetime | |
| import re | |
| SQL = ''' | |
| select | |
| name, version, time, author, text |
| range = 1..100 | |
| range.each do |num| | |
| if (num%3 == 0 && num%5 == 0) | |
| p 'FizzBuzz' | |
| elsif (num%3 == 0) | |
| p 'Fizz' | |
| elsif (num%5 == 0) | |
| p 'Buzz' | |
| else | |
| p num |