This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require './vendor/autoload.php'; | |
use Cake\Core\Configure; | |
use Cake\Http\ServerRequest; | |
use Cake\Routing\Router; | |
// Setup | |
define('CONFIG', __DIR__ . '/tests/test_app/config/'); | |
Configure::write('App', [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model\Entity; | |
use Cake\ORM\Entity; | |
/** | |
* Car Entity | |
* | |
* @property string $id | |
* @property string $name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ORM/Association.php b/src/ORM/Association.php | |
index b863ed8..38ddc7a 100644 | |
--- a/src/ORM/Association.php | |
+++ b/src/ORM/Association.php | |
@@ -839,8 +839,9 @@ abstract class Association | |
} | |
$newContain = []; | |
+ $aliasPrefix = isset($options['aliasPath']) ? $options['aliasPath'] . '.' : ''; | |
foreach ($contain as $alias => $value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use App\Controller\AppController; | |
use Cake\Event\Event; | |
use Cake\Mailer\MailerAwareTrait; | |
/** | |
* Bookmarks Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::uses('AppModel', 'Model'); | |
/** | |
* Article Model | |
* | |
* @property Comment $Comment | |
*/ | |
class Article extends AppModel { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/i18n/en.js b/i18n/en.js | |
index c718cee..b68308f 100644 | |
--- a/i18n/en.js | |
+++ b/i18n/en.js | |
@@ -59,8 +59,6 @@ var i18n = { | |
}, | |
"lateReminderCreate": { | |
"free": { | |
- "headline": "To send payment reminders and more, go Pro", | |
- "subHeadline": "Payment reminders are included with all Pro plans. To use payment reminders and other Pro features, choose a plan or call 1-866-417-2795 if you need a hand." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Billings::Subscription | |
.where(systemid: Role.where( | |
identity_id: id, | |
role: Role::ADMIN_ROLE || Role::STAFF_ROLE).map(&:systemid)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X-Header: some content\r\n | |
goes here and here\r\n | |
more here\r\n | |
X-Header-2: single value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -k "https://cake.localhost.com/tasks/aaa%27;%3Cimg%20src=%27a%27%20onerror=%27alert%28%22XSS%22%29%27/" | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> | |
CakePHP: the rapid development php framework: | |
Errors </title> | |
<link href="/favicon.ico" type="image/x-icon" rel="icon" /><link href="/favicon.ico" type="image/x-icon" rel="shortcut icon" /><link rel="stylesheet" type="text/css" href="/css/cake.generic.css" /></head> | |
<body> | |
<div id="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Cake/ORM/BehaviorRegistry.php b/Cake/ORM/BehaviorRegistry.php | |
index db1aa77..06d2d63 100644 | |
--- a/Cake/ORM/BehaviorRegistry.php | |
+++ b/Cake/ORM/BehaviorRegistry.php | |
@@ -14,6 +14,7 @@ | |
*/ | |
namespace Cake\ORM; | |
+use Cake\Cache\Cache; | |
use Cake\Core\App; |