Project

General

Profile

Actions

Defect #7489

closed

Issue's journal max string length

Added by Hisafumi Kamezono almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2011-01-29
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

In Ruby 1.8, a String is always just a collection of bytes.

in, app/models/journal_detail.rb

value[0..254]

does not trim 255 character.

I changed those like this.

value[/.{0,254}/m]

Is it suitable?

  • My Ruby version : 1.8.6
  • My redmine version : 1.1.0
  • My database version : MySQL 5.0
Actions

Also available in: Atom PDF