More Ruby 1.9 Encoding Fun

Under Ruby 1.9, could not delete orphan
pages with utf-8 names. They would be
listed as orphan, but "Delete Orphan Pages"
would silently not delete them.

Fixed.
This commit is contained in:
Jacques Distler 2010-01-24 12:23:47 -06:00
parent b9db67073d
commit aea2c5099f
3 changed files with 4 additions and 4 deletions

View file

@ -96,7 +96,7 @@ require 'stringsupport'
# Performs HTML escaping on text, but keeps linefeeds intact (by replacing them with <br/>)
def escape_preserving_linefeeds(text)
h(text).gsub(/\n/, '<br/>')
h(text).gsub(/\n/, '<br/>').as_utf8
end
def format_date(date, include_time = true)