Bug #2417
redmine_scm breaks /admin/info
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
Fixes for Redmine 3.x: regexp fix and observer removal
History
#1 Updated by Andriy Lesyuk almost 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