Permalink
Browse files

Merge branch 'release/0.1.2'

  • Loading branch information...
2 parents 83cc95f + 24388f7 commit 6a58eaf07caa37f966498fa4367d3c115e7c17a8 @martin-denizet committed Jan 13, 2012
Showing with 7 additions and 2 deletions.
  1. +4 −0 CHANGELOG
  2. +1 −1 app/controllers/attach_screenshot_controller.rb
  3. +2 −1 init.rb
View
@@ -0,0 +1,4 @@
+Version 0.1.2 - 2012/01/13
+--------------------------
+
+* Bugfix:A date starting with a 0 is converted as integer to form the temporary name makes a 500 error.
@@ -33,6 +33,6 @@ def index
private
def make_tmpname(date, name = "screenshot.png")
- sprintf('%d_%d%s', User.current.id, date, name)
+ sprintf('%d_%s%s', User.current.id, date, name)
end
end
View
@@ -8,8 +8,9 @@
Redmine::Plugin.register :redmine_attach_screenshot do
name 'Redmine Attach Screenshot plugin'
author 'Konstantin Zaitsev, Sergei Vasiliev, Alexandr Poplavsky, Jens Alfke, modified by Martin Denizet'
+ author_url 'https://github.com/martin-denizet'
description 'Attach screenshots from clipboard directly to a Redmine issue'
- version '0.1.1-mdfork'
+ version '0.1.2-mdfork'
Dispatcher.to_prepare do
ApplicationController.send(:include, AttachScreenshotPlugin::ApplicationControllerPatch)
AccountController.send(:include, AttachScreenshotPlugin::CleanupTmp)

0 comments on commit 6a58eaf

Please sign in to comment.