Commit graph

4422 commits

Author SHA1 Message Date
AD7six
2cb2ca554c Correcting env('HTTP_BASE') ensuring that when used with no subdomain (http://example.com) it does not return '.com' as the HTTP_BASE
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7679 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 18:01:52 +00:00
nate
badfb42c6a Fixing issue with file upload inputs not being factored into form security hash, closes #5489
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7678 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 16:23:39 +00:00
mark_story
bf3e254987 Removing secure() from FormHelper::submit(). Removes creation of multiple _Token inputs when multiple submit buttons are created. Fixes #5490.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7677 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-29 01:58:27 +00:00
phpnut
d98137b272 Fixing text in a test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7676 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-28 23:55:40 +00:00
the_undefined
b0cca2c61e Added new problem that needs fixing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7675 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-28 18:02:25 +00:00
the_undefined
aab1e506a1 Fixes #5225
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7674 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-28 17:41:23 +00:00
TommyO
901c64abde Minor refactoring to better respect static method definitions, and to improve on unnecessary singleton instances.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7673 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 17:57:48 +00:00
mark_story
e8945ef04f Fixing doc block and method visibility doc tag for Configure::buildPaths(). Closes #5488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7672 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 14:56:32 +00:00
mark_story
b6f9e1e537 Correcting scaffold view file implementation. Was incorrectly using separate add and edit templates. Changes bring scaffold templates more inline with bake templates.
Tests added to cover use with both primary app and plugins. Refs #4862 and closes #5484 

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7671 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 03:48:23 +00:00
renan.saddam
0a0ba598e5 Proving that ClassRegistry will not overwrite alias from associations. Closes #5482 as invalid.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7670 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-27 02:38:15 +00:00
john
6ad3cfa0ef Enhancing Set::map() so that it doesn't override manual setting of _name_. Test case enhanced to make sure it does so.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7669 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 21:11:51 +00:00
gwoo
f8f4bcc16c fixes #5482, playing with model that uses alias
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7668 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 15:27:36 +00:00
mark_story
1a0d87ba83 Correcting type and expanding documentation for Model::invalidate(). Closes #5481
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7667 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 15:14:31 +00:00
gwoo
e6b994bcb1 updating handling of required classes, fixes #5480
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7666 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 14:03:16 +00:00
renan.saddam
a628dfa028 Added test to prove #5482 (Trying to get property of non-object).
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7665 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 01:37:17 +00:00
mark_story
370b20dce6 Minor optimizations
Closes #5249 and #5282

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7664 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 00:46:53 +00:00
mark_story
c416b5d241 Removing cruft from form test
Adding test descriptions.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7663 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 00:07:57 +00:00
mark_story
62168bfe0f Updating doc blocks to include access and return PHPDOC tags.
Removing use of e() in Debugger.
Fixing code formatting in CookieComponent
Closes #5477

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7662 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 16:49:56 +00:00
mark_story
bd57349665 Updating help for schema shell. Clarifying use of schema dump.
Reformatting help for other commands.  Closes #5407

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7661 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 03:50:45 +00:00
renan.saddam
8cc72d853d Added test to disprove ticket #3771. Closes #3771 as invalid.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7660 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 00:58:06 +00:00
nate
ee36956000 Minor security class refactoring.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7659 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 23:05:51 +00:00
nate
eb7fb6d7e3 Re-implementing form hashing security to using string-based keying. Fixes #5262, fixes #5300
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7658 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 23:02:14 +00:00
gwoo
7266f86d14 fixing some errors in schema and test shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7657 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 13:49:37 +00:00
renan.saddam
3f8c959ab3 small refactoring for the ClassRegistry
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7656 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 13:37:06 +00:00
DarkAngelBGE
5aade5b581 small return home early refactorings for the set class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7655 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 12:08:24 +00:00
DarkAngelBGE
cc425a5e0a adding a couple whitespace corrections (trailing tabs, newlines, ..)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7654 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 11:52:29 +00:00
renan.saddam
3459fef98f Fixing wrong class_exists check. Fixes #5474.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7653 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 02:12:35 +00:00
renan.saddam
5245b3fa7c Added test to prove #5474. Refs #5474
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7652 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 02:00:57 +00:00
mark_story
3662f8c4d0 Changing how Folder Class is loaded. Fixes infinite loops resulting in segfault under apache 2 when Cache.disable = true and debug = 0. Closes #5458
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7651 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 00:33:54 +00:00
DarkAngelBGE
4ce3f21608 adding missing options array in Model::beforeValidate(0 and Model::beforeSave() as they are called with them out of the model and it is good practice, although they are meant to be overriden; closes #5470
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7650 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 18:50:27 +00:00
DarkAngelBGE
e245d18ed8 fixes #5469
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7648 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 12:04:02 +00:00
DarkAngelBGE
c8ab1ec092 small readability refactorings for Set::filter() and Set::matches()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7647 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 11:33:36 +00:00
mark_story
676459224c Adding patches from andy__ to dbo_odbc
Schema related functions will not work due to the way odbc works.
Closes #5398

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7646 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 02:59:05 +00:00
DarkAngelBGE
caa4e321f2 Fixing unneeded conditions in child queries when conditions are present in the model declaration; fixes #5323
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7645 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 20:08:31 +00:00
nate
24b444ca55 Fixing behavior initialization in model construction, adding Set::flatten() utility method for future refactoring, updating Set test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7644 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 16:32:41 +00:00
gwoo
ea7981023b updating doc block for Cache::set() refs #5460
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7643 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 13:06:26 +00:00
phpnut
8b45eeed8b Fixing MediaView so it will stop reading file when connection is aborted.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7642 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 05:35:36 +00:00
mark_story
fafb01b09d Fixing modelClass when using plugin models.
Added TestPluginPost to test_app/test_plugin
Test case added.
Closes #5459

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7641 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 04:10:49 +00:00
nate
d9b357d05c Making Model::$_findMethods protected, and fixing fatal error when table calls are attempted on a model with a missing table
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7640 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-21 04:09:16 +00:00
nate
80c1950530 Refactoring FormHelper security token generation, fixing code formatting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7639 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-21 04:06:37 +00:00
nate
42911f5bc3 Adding example Ajax layout for Auth test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7638 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-20 21:48:43 +00:00
nate
fc5b128d68 Refactoring Auth test, adding coverage, and enabling custom Ajax layouts (as specified by RequestHandler), fixes #5446
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7637 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-20 20:18:16 +00:00
mark_story
9482105abe Applying patch from renan_saddam. Fixes session checkAgent logic. Closes #5450
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7636 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-20 13:51:49 +00:00
nate
f695170365 Fixing console routing commands and implementing route loading so commands work with lazy route compiling
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7635 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 21:33:59 +00:00
nate
91838d6d5d Fixing bug in RequestHandler::prefers() not respecting accept order for single items, test case updated
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7634 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 19:48:22 +00:00
the_undefined
740bd4e769 Partial fix for #5225
Corrected expected behavior for 2nd issue

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7633 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 18:08:27 +00:00
gwoo
931d996d90 fixes #5438, multiple binding with alias
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7632 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 15:27:43 +00:00
renan.saddam
4f5a51d79d Proving bad condition structure when Session.checkAgent equal to false. Refs #5450
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7631 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 02:57:58 +00:00
renan.saddam
5cedddb9d2 Fixing since tag from file added on last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7630 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 02:40:07 +00:00
renan.saddam
597f7642fa Added tests to disprove strange App::import behavior. Closes #5395
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7629 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 02:37:20 +00:00