junebug 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v0.0.17 2006-11-19
2
+
3
+ * Quick bugfix for login redirects behind proxy
4
+
1
5
  v0.0.16 2006-11-19
2
6
 
3
7
  * Style tweaks
data/lib/junebug.rb CHANGED
@@ -18,7 +18,7 @@ require 'fileutils'
18
18
  module Junebug
19
19
  include Camping::Session
20
20
 
21
- VERSION='0.0.16'
21
+ VERSION='0.0.17'
22
22
 
23
23
  def self.create
24
24
  Junebug::Models.create_schema :assume => (Junebug::Models::Page.table_exists? ? 1.0 : 0.0)
@@ -148,7 +148,7 @@ module Junebug::Controllers
148
148
  if @user
149
149
  if @user.password == input.password
150
150
  @state.user = @user
151
- input.return_to.blank? ? redirect(Junebug.startpage) : redirect(input.return_to)
151
+ input.return_to.blank? ? redirect(Junebug.startpage) : redirect(Junebug.config['url'] + input.return_to)
152
152
  return
153
153
  else
154
154
  @notice = 'Authentication failed'
@@ -170,7 +170,7 @@ module Junebug::Controllers
170
170
  class Logout
171
171
  def get
172
172
  @state.user = nil
173
- input.return_to.blank? ? redirect(Junebug.startpage) : redirect(input.return_to)
173
+ input.return_to.blank? ? redirect(Junebug.startpage) : redirect(Junebug.config['url'] + input.return_to)
174
174
  end
175
175
  end
176
176
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: junebug
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.16
6
+ version: 0.0.17
7
7
  date: 2006-11-19 00:00:00 -08:00
8
8
  summary: Junebug is a minimalist ruby wiki.
9
9
  require_paths: