Index: app/controllers/journals_controller.rb =================================================================== --- app/controllers/journals_controller.rb (revision 17930) +++ app/controllers/journals_controller.rb (working copy) @@ -70,7 +70,7 @@ end # Replaces pre blocks with [...] text = text.to_s.strip.gsub(%r{
(.*?)
}m, '[...]') - @content = "#{ll(Setting.default_language, :text_user_wrote, user)}\n> " + @content = +"#{ll(Setting.default_language, :text_user_wrote, user)}\n> " @content << text.gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n" rescue ActiveRecord::RecordNotFound render_404 Index: app/controllers/messages_controller.rb =================================================================== --- app/controllers/messages_controller.rb (revision 17930) +++ app/controllers/messages_controller.rb (working copy) @@ -115,7 +115,7 @@ @subject = @message.subject @subject = "RE: #{@subject}" unless @subject.starts_with?('RE:') - @content = "#{ll(Setting.default_language, :text_user_wrote, @message.author)}\n> " + @content = +"#{ll(Setting.default_language, :text_user_wrote, @message.author)}\n> " @content << @message.content.to_s.strip.gsub(%r{
(.*?)
}m, '[...]').gsub(/(\r?\n|\r\n?)/, "\n> ") + "\n\n" end Index: app/controllers/search_controller.rb =================================================================== --- app/controllers/search_controller.rb (revision 17930) +++ app/controllers/search_controller.rb (working copy) @@ -20,7 +20,7 @@ accept_api_auth :index def index - @question = params[:q] || "" + @question = params[:q] || +"" @question.strip! @all_words = params[:all_words] ? params[:all_words].present? : true @titles_only = params[:titles_only] ? params[:titles_only].present? : false Index: app/helpers/application_helper.rb =================================================================== --- app/helpers/application_helper.rb (revision 17930) +++ app/helpers/application_helper.rb (working copy) @@ -278,7 +278,7 @@ end def toggle_link(name, id, options={}) - onclick = "$('##{id}').toggle(); " + onclick = +"$('##{id}').toggle(); " onclick << (options[:focus] ? "$('##{options[:focus]}').focus(); " : "this.blur(); ") onclick << "$(window).scrollTop($('##{options[:focus]}').position().top); " if options[:scroll] onclick << "return false;" @@ -322,7 +322,7 @@ # The given collection may be a subset of the whole project tree # (eg. some intermediate nodes are private and can not be seen) def render_project_nested_lists(projects, &block) - s = '' + s = +'' if projects.any? ancestors = [] original_project = @project @@ -352,7 +352,7 @@ end def render_page_hierarchy(pages, node=nil, options={}) - content = '' + content = +'' if pages[node] content << "