From f255ae6a24b9868d490e813eb151157a033d40b3 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 1 Jan 2011 22:58:40 -0500 Subject: [PATCH] Adding word boundaries to the request patterns. Also adding lookaheads to prevent methods from being changed. --- cake/console/shells/upgrade.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cake/console/shells/upgrade.php b/cake/console/shells/upgrade.php index e7e291d3a9a..d8c8cc7a78b 100644 --- a/cake/console/shells/upgrade.php +++ b/cake/console/shells/upgrade.php @@ -175,32 +175,32 @@ public function request() { $patterns = array( array( '$this->data -> $this->request->data', - '/(\$this->data)/', + '/(\$this->data\b(?!\())/', '$this->request->data' ), array( '$this->params -> $this->request->params', - '/(\$this->params)/', + '/(\$this->params\b(?!\())/', '$this->request->params' ), array( '$this->webroot -> $this->request->webroot', - '/(\$this->webroot)/', + '/(\$this->webroot\b(?!\())/', '$this->request->webroot' ), array( '$this->base -> $this->request->base', - '/(\$this->base)/', + '/(\$this->base\b(?!\())/', '$this->request->base' ), array( '$this->here -> $this->request->here', - '/(\$this->here)/', + '/(\$this->here\b(?!\())/', '$this->request->here' ), array( '$this->action -> $this->request->action', - '/(\$this->action)/', + '/(\$this->action\b(?!\())/', '$this->request->action' ), );