Feature #9693 ยป pdf-external-url.diff
lib/redmine/export/pdf.rb | ||
---|---|---|
129 | 129 |
if atta |
130 | 130 |
return atta.diskfile |
131 | 131 |
else |
132 |
return nil |
|
132 |
attrname_utf8 = Redmine::CodesetUtil.to_utf8(attrname, l(:general_pdf_encoding)) |
|
133 |
# check of unsafe URI |
|
134 |
if attrname_utf8 =~ /[^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]%]/n |
|
135 |
return URI.encode(attrname_utf8) |
|
136 |
else |
|
137 |
return attrname_utf8 |
|
138 |
end |
|
133 | 139 |
end |
134 | 140 |
end |
135 | 141 |