Commit graph

18069 commits

Author SHA1 Message Date
José Lorenzo Rodríguez
eddb2beb46 Merge pull request #7141 from cakephp/issue-7135
Bootstrap Configure after the mb_* shims have been defined.
2015-07-30 10:20:24 +02:00
mark_story
26ab829d5a Bootstrap Configure after the mb_* shims have been defined.
By bootstrapping after the shims have been defined allows the shims to
be used by Inflector which is often involved with bootstrapping.

Refs #7135
2015-07-29 22:01:27 -04:00
Mark Story
4d452812c0 Merge pull request #7131 from luissquall/fix-htaccess-indentation
Set .htaccess indentation to 4 spaces
2015-07-28 19:40:36 -04:00
Luis Ramos
a3bb420a7b Set .htaccess indentation to 4 spaces 2015-07-28 17:58:38 -05:00
ADmad
003a0dde74 Merge pull request #7129 from ravage84/patch-3
Add "Reporting a Security Issue"
2015-07-28 23:35:47 +05:30
Marc Würth
00d0a50dc2 Add "Reporting a Security Issue"
Backport of #7104
2015-07-28 20:02:06 +02:00
José Lorenzo Rodríguez
355eb1859c Merge pull request #7106 from cakephp/issue-7098
Consistently remove plugin names in object collections.
2015-07-28 15:58:41 +02:00
José Lorenzo Rodríguez
d5cc45c0cb Merge pull request #7124 from cakephp/issue-7121
Don't stop reading when only a '0' has been read.
2015-07-28 14:52:05 +02:00
mark_story
58ea40e32c Don't stop reading when only a '0' has been read.
Make tests simpler by using onConsecutiveCalls() instead of trying to
maintain mock method indexes.

Refs #7121
2015-07-27 22:40:27 -04:00
Mark Story
97be4f893a Merge pull request #7117 from Tijme/2.7
Disable SNI in HttpSocket
2015-07-27 16:57:53 -04:00
Mark Story
6e16f78d69 Merge pull request #7114 from cakephp/2.7-nano-opt
use constant PHP_SAPI
2015-07-27 16:31:16 -04:00
t.gommers
b16d627b36 Disable SNI in HttpSocket 2015-07-27 13:03:21 +02:00
Mark Scherer
a239324a0d use constant PHP_SAPI 2015-07-26 15:35:03 +02:00
Mark Story
de4b44a37b Merge pull request #7077 from dereuromark/2.7-static
Replacing self with static due to PHP5.3+. Following #7040.
2015-07-23 22:27:37 -04:00
mark_story
b3a192add0 Add warning for irregular method.
Refs #7096
2015-07-23 21:49:22 -04:00
mark_story
418dcfd7f8 Consistently remove plugin names in object collections.
We were sometimes removing plugin prefixes (set, and some subclass
methods). But many other methods were missing the pluginSplit() feature.
This change makes all of the methods in ObjectCollection strip plugin
prefixes, which increases consistency across the framework.

Refs #7098
2015-07-23 21:46:21 -04:00
mark_story
45877df3eb Update version number to 2.7.1 2015-07-23 21:08:54 -04:00
Mark Story
92ac2bc39d Merge pull request #7101 from ravage84/2.7-bake-templates
Slightly improve the bake templates
2015-07-23 17:13:09 -04:00
Marc Würth
71e4ed91af Slightly improve the bake templates 2015-07-23 17:29:47 +02:00
Mark Story
6c53f8bf93 Merge pull request #7097 from antograssiot/conEmu
enable colors for windows ConEmu user
2015-07-23 07:04:14 -04:00
antograssiot
94b2ea29a6 enable colors for windows ConEmu user
backport of #7090
2015-07-23 05:49:15 +02:00
Mark Story
e19f621314 Merge pull request #7086 from cakephp/issue-7069
Fix issues saveMany & saveAssociated with boolean values.
2015-07-22 22:01:39 -04:00
Yoshiyuki Kinjo
00919c5f01 Fix FormHelper::input ignoring value option.
Signed-off-by: mark_story <mark@mark-story.com>

Backport fixes from #7082 to 2.7
2015-07-22 22:00:20 -04:00
Yoshiyuki Kinjo
e25be3a47e Add failing test for FormHelper::input
FormHelper::input does not respect 'value' option when form is of date/time type.

Signed-off-by: mark_story <mark@mark-story.com>

Backport fixes from #7082 to 2.7
2015-07-22 21:59:44 -04:00
mark_story
c6e5026767 Fix issues saveMany & saveAssociated with boolean values.
For non-atomic, save operations that include models with boolean fields.
The first false value would cause the save to abort. This regression was
introduced in #6947. Instead of checking the data from save() we should
be boolean casting save() to capture the success/failure.

Refs #7069
2015-07-22 00:41:10 -04:00
mark_story
e4b2428735 Fix PHPCS errors. 2015-07-21 16:28:17 -04:00
Mark Scherer
52e79987a2 Replacing self with static due to PHP5.3+. Following #7040. 2015-07-21 10:22:53 +02:00
mark_story
27e40f084d Merge branch 'hash-maxdim' into 2.7
Merges pull requests #7041 and #7040 into 2.7
2015-07-20 22:26:55 -04:00
mark_story
bd23fdeebf Simplify code and reduce test redundancy.
We don't need the additional parameter, and some of the tests weren't
covering unique scenarios.

Refs #7040
2015-07-20 22:16:50 -04:00
Chris Valliere
64f0ca0028 Fix Hash::maxDimensions
The current Hash::maxDimensions function calls Hash::dimensions to try
to get the maximum depth of the passed in array.  However, this ends up
only getting the depth of the first element of each 1st dimension
element in the array passed to maxDimensions.  The function needs to be
called recursively in order to get the depth of ALL of the elements in
all of the dimensions of the passed in array.

I made the maxDimensions function more closely resemble the deprecated
Set::countDim function in order to restore the correct functionality.
2015-07-20 22:07:58 -04:00
Chris Valliere
7b2d7ad748 Test Case for Hash::maxDimensions
Added test case for Hash::maxDimensions using the example array in pull request #7040.
2015-07-20 22:07:58 -04:00
Mark Story
23b3b1a3cd Merge pull request #7052 from ravage84/2.7-cherry-pick-issue-7037
Backport #7037
2015-07-17 10:44:37 -04:00
David Yell
4af2e5489b Update deprecated method in docblocks
So that the docblock doesn't point you to another deprecated method which then points you to the actual method.
2015-07-17 16:14:06 +02:00
mark_story
1a1363fd2a Merge branch 'authfix' into 2.7
Refs #7034
2015-07-16 23:00:54 -04:00
mark_story
9b313f86e4 Add tests for #7034
These tests ensure that redirect() is never called which ensures the
Location header is never set. Ajax requests when no loginElement is
defined should get an empty response with a 403 status code.
2015-07-16 23:00:20 -04:00
adam1010
1922a18d07 Ajax requests not properly returning 403
When an AJAX request is made to a page that's not authorized, an infinite redirect loop to  /status:403/exit:1  is triggered. This bug has existed at least since CakePHP v2.3.0. The main use case is when a user's session has expired and they try to use an authenticated feature as a logged-out user.
2015-07-16 22:47:13 -04:00
mark_story
0d0d1e15f9 Merge branch '2.6' into 2.7 2015-07-15 21:24:35 -04:00
mark_story
8717352f15 Update version number to 2.6.9 2015-07-15 21:22:16 -04:00
Mark Story
a322813182 Merge pull request #7006 from cakephp/2.7-caketext
Backport utf8 fix for CakeText::tokenize().
2015-07-13 11:26:27 -04:00
Mark Scherer
d98e7d8d27 Fix tests. 2015-07-13 08:37:11 +02:00
Mark Scherer
2eea245491 Backport utf fix for CakeText::tokenize(). 2015-07-13 08:23:05 +02:00
mark_story
e07b64f4e3 Update version number to 2.7.0 2015-07-11 21:34:20 -04:00
mark_story
47378427e3 Merge branch '2.6' into 2.7 2015-07-11 21:25:26 -04:00
José Lorenzo Rodríguez
a5209dc20e Merge pull request #6996 from cakephp/issue-6992
Add missing parameter to rawQuery()
2015-07-11 12:38:16 +02:00
mark_story
65c1745349 Add missing parameter to rawQuery()
Previously bound parameters were put in the incorrect position.

Refs #6992
2015-07-10 12:56:49 -04:00
José Lorenzo Rodríguez
77ee00e8db Merge pull request #6988 from ravage84/2.6-windows
Capitalize Windows, the OS
2015-07-09 16:06:18 +02:00
Marc Würth
4a131bdcbf Capitalize Windows, the OS 2015-07-09 15:54:03 +02:00
mark_story
d451f5235e Merge branch '2.6' into 2.7 2015-07-08 09:35:22 -04:00
Anne
b4b10e75ac Added return types in PHP documenation in basics.php, since it raises warning in ie. PHPStorm, like:
- Method _toString is not implemented for translated
2015-07-08 09:35:06 -04:00
Mark Story
1beb8ae98e Merge pull request #6973 from annuh/6972-Documentation-for-some-translation-methods-is-incorrect
Added return types in PHP documenation in basics.php, since it raises…
2015-07-08 09:34:26 -04:00