I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2417

redmine_scm breaks /admin/info

Added by Lukas Pirl about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Redmine version:
External issue:

Description

redmine_scm breaks the page /admin/info with the following error:

App 50911 stderr:   Rendered admin/info.html.erb within layouts/admin (155.7ms)
App 50911 stderr: Completed 500 Internal Server Error in 178ms (ActiveRecord: 2.6ms)
App 50911 stderr: 
App 50911 stderr: ActionView::Template::Error (The provided regular expression is using multiline anchors (^ or $), whi
ch may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option?):
App 50911 stderr:     12: </table>
App 50911 stderr:     13: <br />
App 50911 stderr:     14: <div class="box">
App 50911 stderr:     15: <pre><%= Redmine::Info.environment %></pre>
App 50911 stderr:     16: </div>
App 50911 stderr:     17: 
App 50911 stderr:     18: <% html_title(l(:label_information_plural)) -%>
App 50911 stderr:   plugins/redmine_scm/app/models/repository/github.rb:4:in `<class:Github>'
App 50911 stderr:   plugins/redmine_scm/app/models/repository/github.rb:3:in `<top (required)>'
App 50911 stderr:   lib/redmine/info.rb:21:in `block in environment'
App 50911 stderr:   lib/redmine/info.rb:20:in `each'
App 50911 stderr:   lib/redmine/info.rb:20:in `environment'
App 50911 stderr:   app/views/admin/info.html.erb:15:in `_app_views_admin_info_html_erb___86724278739817359_66792600'

A hotfix is (it’s probably also the proper fix) to replace '^' with '/A’ and '$' with '/z’ in plugins/redmine_scm/app/models/repository/github.rb:4

Associated revisions

Revision 141 (diff)
Added by Andriy Lesyuk about 10 years ago

Fixes for Redmine 3.x: regexp fix and observer removal

History

#1 Updated by Andriy Lesyuk about 8 years ago

  • Status changed from New to Closed
  • Assignee set to Andriy Lesyuk
  • Target version set to 0.5.1
  • % Done changed from 0 to 100

This was already fixed in r141

Also available in: Atom PDF

Terms of use | Privacy policy