Rafael Mendonça França
c43f20a404
Merge branch '3-2-sec' into 3-2-stable
2014-07-02 14:18:47 -03:00
Rafael Mendonça França
53c845cb18
Preparing for 3.2.19 release
2014-07-02 12:55:09 -03:00
Rafael Mendonça França
1f2192e46d
Check against bit string values using multiline regexp
...
Fix CVE-2014-3482.
2014-07-02 12:49:01 -03:00
Rafael Mendonça França
3622858ed5
Use a version of execjs compatible with Ruby 1.8
2014-06-26 22:10:32 -03:00
Rafael Mendonça França
297bff7f8f
Make sure Active Support configurations are applied correctly
...
Before this patch configuration set using config.active_support
would not be set.
Closes #15364
2014-06-26 18:40:23 -03:00
Guillermo Iguaran
bc90ea63e9
Revert "Merge pull request #15794 from vishalzambre/patch-1"
...
This reverts commit 6d800a909e , reversing
changes made to 6a051299f9 .
We don't apply non-security fixes to 3-2-stable branch!!!
2014-06-18 00:37:46 -05:00
Guillermo Iguaran
6d800a909e
Merge pull request #15794 from vishalzambre/patch-1
...
File.exists? is a deprecated name, use File.exist?
2014-06-18 00:33:00 -05:00
Vishal Zambre
fca3cc23fa
File.exists? is a deprecated name, use File.exist?
...
File.exists? is a deprecated name, use File.exist?
2014-06-18 10:51:27 +05:30
Aaron Patterson
6a051299f9
Feature detect based on Ruby version.
...
I didn't want to do this, FNM_EXTGLOB is defined on 2.1.x, but Dir.glob
returns the wrong value on Ruby less than 2.2.0. Checking for a
case-insensitive FS seems too hard, so just check Ruby version Checking
for a case-insensitive FS seems too hard, so just check Ruby version.
2014-05-18 12:00:57 -07:00
Aaron Patterson
c40df47055
feature detect for FNM_EXTGLOB for older Ruby. Fixes #15053
2014-05-10 11:53:02 -07:00
Aaron Patterson
03e016f22a
use fnmatch to test for case insensitive file systems
...
this is due to:
https://bugs.ruby-lang.org/issues/5994
2014-05-09 14:46:46 -07:00
Rafael Mendonça França
bbec7d72be
Merge branch '3-2-sec' into 3-2-stable
...
Conflicts:
actionpack/CHANGELOG.md
2014-05-06 13:31:07 -03:00
Rafael Mendonça França
50d6b4549d
Fix broken tests of the previous release
2014-05-06 13:03:21 -03:00
Rafael Mendonça França
4e8f1d2588
Preparing for 3.2.18 release
2014-05-06 11:33:10 -03:00
Rafael Mendonça França
0f3b7d1a31
Only accept actions without File::SEPARATOR in the name.
...
This will avoid directory traversal in implicit render.
Fixes: CVE-2014-0130
2014-05-05 11:37:34 -03:00
Rafael Mendonça França
a3bda38467
Merge branch '3-2-17' into 3-2-stable
...
Conflicts:
actionpack/CHANGELOG.md
2014-02-18 15:57:32 -03:00
Rafael Mendonça França
666e9f65bd
Preparing for 3.2.17 release
2014-02-18 15:16:57 -03:00
Rafael Mendonça França
388d2f8888
Use the reference for the mime type to get the format
...
Before we were calling to_sym in the mime type, even when it is unknown
what can cause denial of service since symbols are not removed by the
garbage collector.
Fixes: CVE-2014-0082
2014-02-18 15:02:54 -03:00
Rafael Mendonça França
eaa2101b29
Escape format, negative_format and units options of number helpers
...
Previously the values of these options were trusted leading to
potential XSS vulnerabilities.
Fixes: CVE-2014-0081
2014-02-18 15:02:29 -03:00
Damien Mathieu
5a84d3eb81
Merge pull request #13613 from simi/patch-1
...
Fix force_ssl.rb documentation. Close tt tag.
2014-01-06 06:29:25 -08:00
Josef Šimánek
c13eb1c727
Fix force_ssl.rb documentation. Close tt tag.
...
[ci skip]
2014-01-06 15:28:35 +01:00
Rafael Mendonça França
3a429e6b5d
Merge pull request #13315 from tyre/patch-1
...
Update Session Store Documentation
2013-12-13 18:02:20 -08:00
Chris Maddox
1805682efa
Update Session Store Documentation
...
session_id doesn't need to be a text column, just string (VARCHAR)
2013-12-13 17:02:16 -08:00
Carlos Antonio da Silva
31a485fa5a
Merge pull request #13183 from sorah/never_ignore_i18n_translate_raise_option
...
Escalate missing error when :raise is true in translate helper, fix regression introduced by security fix.
Conflicts:
actionpack/CHANGELOG.md
2013-12-04 22:34:15 -02:00
Rafael Mendonça França
c82025fcd6
Fix documentation of number_to_currency helper
...
Now users have to explicit mark the unit as safe if they trust it.
Closes #13161
2013-12-04 10:22:46 -02:00
Rafael Mendonça França
9c60e3df9f
Merge pull request #13162 from makandra/3-2-stable
...
Repair a test broken by the number_to_currency XSS fix
2013-12-04 04:14:55 -08:00
Tobias Kraze
9e625d6465
repair a test broken by the number_to_currency XSS fix
2013-12-04 12:16:05 +01:00
Aaron Patterson
64226302d8
updating the changelog
2013-12-02 16:17:19 -08:00
Michael Koziarski
d5a4095ca5
Deep Munge the parameters for GET and POST
...
The previous implementation of this functionality could be accidentally
subverted by instantiating a raw Rack::Request before the first Rails::Request
was constructed.
Fixes CVE-2013-6417
Conflicts:
actionpack/lib/action_dispatch/http/request.rb
2013-12-02 14:14:35 -08:00
Michael Koziarski
78790e4bce
Stop using i18n's built in HTML error handling.
...
i18n doesn't depend on active support which means it can't use our html_safe
code to do its escaping when generating the spans. Rather than try to sanitize
the output from i18n, just revert to our old behaviour of rescuing the error
and constructing the tag ourselves.
Fixes: CVE-2013-4491
Conflicts:
actionpack/lib/action_view/helpers/translation_helper.rb
Backport: 50afd8eec9d088ad5a2d41f00a05520d5b78a6a0
2013-12-02 14:02:15 -08:00
Michael Koziarski
5ed70c591f
Escape the unit value provided to number_to_currency
...
Fixes CVE-2013-6415
Previously the values were trusted blindly allowing for potential XSS attacks.
2013-12-02 13:49:41 -08:00
Aaron Patterson
bee3b7f937
Only use valid mime type symbols as cache keys
...
CVE-2013-6414
2013-11-30 17:03:18 -08:00
Aaron Patterson
5f844d6cc6
Merge branch '3-2-sec' into 3-2-stable
...
* 3-2-sec:
updating changelogs
bumping to 3.2.15
bumping to rc3
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
bumping to rc2
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
bumping version to 3.2.15.rc1
Remove the use of String#% when formatting durations in log messages
Conflicts:
activerecord/CHANGELOG.md
2013-10-16 10:20:36 -07:00
Aaron Patterson
538f8ba0c1
updating changelogs
2013-10-16 10:01:01 -07:00
Aaron Patterson
2a0c4403fd
bumping to 3.2.15
2013-10-15 11:48:53 -07:00
Aaron Patterson
eb8807e84d
Merge branch '3-2-15' into 3-2-sec
...
* 3-2-15:
bumping to rc3
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
bumping to rc2
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
bumping version to 3.2.15.rc1
Fix STI scopes using benolee's suggestion. Fixes #11939
2013-10-15 11:15:08 -07:00
Aaron Patterson
e3abd78ee5
bumping to rc3
2013-10-11 14:16:06 -07:00
Rafael Mendonça França
38aefa51c3
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
...
This reverts commit ccd11d5891 , reversing
changes made to 54c05acdba .
Reason: This caused a regression when the associated record is created
in a before_create callback. See
https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:55:12 -03:00
Rafael Mendonça França
fbc69ac560
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
...
This reverts commit 7ed5bdc834 , reversing
changes made to 31c79e291f .
Reason: this caused a regression when the associated record is creted in
a before_create callback.
See https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:55:07 -03:00
Rafael Mendonça França
6a185aa0a8
Revert "Merge pull request #12413 from arthurnn/inverse_of_on_build"
...
This reverts commit ccd11d5891 , reversing
changes made to 54c05acdba .
Reason: This caused a regression when the associated record is created
in a before_create callback. See
https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:41:37 -03:00
Rafael Mendonça França
9639f65af5
Revert "Merge pull request #12443 from arthurnn/add_inverse_of_add_target"
...
This reverts commit 7ed5bdc834 , reversing
changes made to 31c79e291f .
Reason: this caused a regression when the associated record is creted in
a before_create callback.
See https://github.com/rails/rails/pull/12413#issuecomment-25848163
2013-10-10 14:40:24 -03:00
Aaron Patterson
5ede19b772
bumping to rc2
2013-10-04 13:46:35 -07:00
Rafael Mendonça França
73dff26125
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
...
Add inverse of add target
2013-10-04 13:58:36 -03:00
Rafael Mendonça França
7ed5bdc834
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
...
Add inverse of add target
2013-10-04 09:57:17 -07:00
Arthur Neves
fc59e997d7
add regression test for set_inverse_instance on add_to_target
2013-10-04 11:15:55 -04:00
Arthur Neves
655396cc10
Add back set_inverse_instance on .add_to_target
...
We must have it in there too, so when an existent record is being concat to another,
we will have the inverse relation.
2013-10-04 10:15:22 -04:00
Aaron Patterson
5e277c8208
bumping version to 3.2.15.rc1
2013-10-03 11:52:44 -07:00
Aaron Patterson
31c79e291f
Merge pull request #12084 from Ben-M/3-2-stable
...
Fix STI scopes using benolee's suggestion. Fixes #11939
2013-10-03 11:14:19 -07:00
Aaron Patterson
befeeb2d0a
Merge branch '3-2-stable' into 3-2-sec
...
* 3-2-stable:
make sure both headers are set before checking for ip spoofing
Move set_inverse_instance to association.build_record
2013-10-03 10:27:58 -07:00
Andrew White
83c4b0a7f9
Merge pull request #12410 from tamird/fix-ip-spoof-errors
...
Fix ip spoof errors
2013-10-01 01:28:07 -07:00