Greg Ose
1b98a0d72f
delete can take a block and allow nil to be returned
2014-05-20 13:35:41 -05:00
Greg Ose
1f59a8dfe8
also stringify keys on update
2014-05-16 15:26:41 -05:00
Greg Ose
e1011ea095
Allow a false value to be returned from symbol keyed session
2014-05-16 12:57:41 -05:00
Greg Ose
5f6c95e29e
Merge branch '2-3-github' into json-sessions
2014-05-13 15:29:47 -05:00
Charlie Somerville
1a45ec57bf
CVE-2014-0130 protection
2014-05-09 23:55:20 +10:00
Greg Ose
9070fbcffe
Revert nested hash indifference, swap delete order
...
Upstream doesnt support nested hashes having indifferent access, we
should stay consistent. Swap order for returned value in session hash.
2014-05-07 14:27:52 -05:00
Greg Ose
364b534815
support indifferent access for hashes stored within FlashHash
2014-04-30 13:18:28 -05:00
Greg Ose
14da203564
indifferent delete
2014-04-29 10:37:53 -05:00
Greg Ose
f46a4bab08
indifferent access to flash hash
2014-04-29 10:21:16 -05:00
Greg Ose
198aa6ef99
Update tests to load flash from session value
2014-04-28 15:07:52 -05:00
Greg Ose
b3ae51c9fc
Add serializer option to cookie store and use Rails 4 Hash flash
...
Backport for Rails 4 flash hash based on https://github.com/envato/rails_4_session_flash_backport
2014-04-28 14:42:24 -05:00
Andy Lindeman
e4cd9caf02
Merge pull request #46 from github/runtime_header
...
Removes the X-Runtime header from ActionController::Benchmarking
2014-02-13 22:34:18 -05:00
Andy Lindeman
89e4514704
Removes the X-Runtime header from ActionController::Benchmarking
...
The `Rack::Runtime` middleware now provides this header
2014-02-13 22:25:27 -05:00
Joshua Peek
24711e1e29
Backport env['rack.session.options'][:skip]
2014-02-11 23:22:39 -06:00
Aman Gupta
dd4146854a
Fix fragment caching in mixed encodings scenario
...
To reduce ambiguity between char- and byte-based operations, explicitly
do byte operations when extracting the fragment that needs to be cached.
2014-01-08 16:35:55 -08:00
Charlie Somerville
8f99d00868
require properly
2013-12-30 14:23:00 +11:00
Charlie Somerville
987b61bd1d
kill QueryExtension, it's more dead junk
2013-12-30 14:15:55 +11:00
Charlie Somerville
f05e54a9f3
remove stdinput monkey patch
2013-12-30 14:15:51 +11:00
Charlie Somerville
b9918117bb
delete ActionController::CGIHandler and CgiRequest
2013-12-30 14:11:07 +11:00
Charlie Somerville
acb182d094
@output is never used anywhere, kill it
2013-12-30 14:09:20 +11:00
Charlie Somerville
6e0fcb788d
remove CGI from the dispatcher
2013-12-30 14:09:00 +11:00
Charlie Somerville
55d6a9f2df
don't reload the middleware stack every request in development
2013-12-30 13:53:48 +11:00
Ted Nyman
379dd9071c
Documentation for #deep_munge
2013-12-03 13:24:11 -08:00
Ted Nyman
a743f17dbd
#deep_munge for CVE-2013-6417
2013-12-03 13:23:02 -08:00
Charlie Somerville
76c5bf4f4b
instantiate the cached helper class instead of extending AV::B
2013-10-25 12:46:48 -04:00
Charlie Somerville
e82a3ba2a0
cache a class that is pre-included with the master helper module
2013-10-25 12:46:48 -04:00
Charlie Somerville
c8d7945ae4
delete render :update
2013-10-24 12:25:38 -04:00
Charlie Somerville
4baefa4de9
delete formatted_ url helper
2013-10-02 14:25:57 +10:00
Charlie Somerville
bf96f35248
we can used defined?() to check if a method is public or protected
2013-09-17 15:45:25 +10:00
Charlie Somerville
e9f9d05a94
pass digest as a key in an options hash
2013-08-27 20:51:18 +10:00
Charlie Somerville
eefc42630f
restore 1.9.3 respond_to? behaviour when running on 1.9.3
2013-08-08 20:42:52 -07:00
Charlie Somerville
28a87a2d54
update vendored html-scanner
2013-08-08 20:37:30 -07:00
Charlie Somerville
3aaacc67e8
fix actionpack test
2013-08-08 20:37:30 -07:00
Charlie Somerville
3f416f3a54
remove obsoleted usage of URI.unescape
2013-08-07 00:02:27 -07:00
Aaron Patterson
37ea897a44
fix protocol checking in sanitization [CVE-2013-1857]
...
Conflicts:
actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
actionpack/test/controller/html-scanner/sanitizer_test.rb
2013-03-18 15:01:49 -03:00
Aman Gupta
55d463eeea
merge routing_tricks plugin for subdomain routing
2013-03-05 17:21:59 -08:00
Aaron Patterson
60f783d9ce
fixing strip tags vulnerability
2011-08-16 14:58:13 -07:00
Aaron Patterson
11dafeaa75
fixing response splitting problem
2011-08-16 14:25:45 -07:00
José Valim
d793a56121
Merged pull request #198 from robdimarco/2-3-stable.
...
Patch for issue 6440 - Session Reset undefined method `destroy' for {}:Hash
2011-04-28 00:37:53 -07:00
gmarik
b0be721dd9
respect :expire_after option
...
- it was broken after
[commit](e0eb8e9c65 )
- there's also
[issue](https://rails.lighthouseapp.com/projects/8994/tickets/6634-railsrack-inconsistency-about-expires_afterexpires-cookie-option )
- also: maybe it worth making Rack understand :expire_after as we
duplicate same logic in [cookie_store](https://github.com/gmarik/rails/blob/v2.3.11/actionpack/lib/action_controller/session/cookie_store.rb#L114 )
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-04-14 13:48:35 +02:00
Rob Di Marco
8ca8ac379d
Fixed bug 6440 by checking that destroy exists on the session
2011-02-28 22:54:03 -05:00
Michael Koziarski
7e86f9b4d2
Change the CSRF whitelisting to only apply to get requests
...
Unfortunately the previous method of browser detection and XHR whitelisting is unable to prevent requests issued from some Flash animations and Java applets. To ease the work required to include the CSRF token in ajax requests rails now supports providing the token in a custom http header:
X-CSRF-Token: ...
This fixes CVE-2011-0447
2011-02-09 09:20:17 +13:00
Michael Koziarski
6d916329b8
Require thread explicitly rather than relying on rubygems to do it.
2010-12-20 11:16:55 +13:00
Pascal Friederich
e0eb8e9c65
Let Rack::Utils.set_cookie_header! create the Set-Cookie header instead of manually fiddling with the response headers [ #4941 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-01 11:58:45 +01:00
José Valim
2826324e56
Revert "Fix AbstractStore so that it preserves Set-Cookie header as an array, rather than as newline separated strings"
...
This reverts commit 36b91e34f4 .
Conflicts:
actionpack/test/activerecord/active_record_store_test.rb
2010-12-01 11:48:31 +01:00
Andrew White
25139ac92c
Don't write out secure cookies unless the request is secure
2010-10-27 15:04:29 +01:00
Omar Qureshi
36b91e34f4
Fix AbstractStore so that it preserves Set-Cookie header as an array, rather than as newline separated strings
2010-10-21 10:28:54 -07:00
Geoff Buesing
f2e32e4fd7
require 'uri' in action_controller/url_rewriter [ #5555 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-12 00:58:29 +02:00
W. Andrew Loe III
17f2fb44c0
Only send secure cookies over SSL.
2010-09-14 11:52:40 -07:00
Andrew Kaspick
a159fd0b8c
Fix fixtures in integration test sessions
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-09-10 10:45:23 +12:00