diff --git a/cake/libs/view/helper.php b/cake/libs/view/helper.php index 806febc70..00d112c3f 100644 --- a/cake/libs/view/helper.php +++ b/cake/libs/view/helper.php @@ -322,12 +322,7 @@ class Helper extends Overloadable { */ function setFormTag($tagValue) { $view =& ClassRegistry::getObject('view'); - - if(strpos($tagValue, '.') !== false) { - $parts = explode(".", $tagValue); - } else { - $parts = explode("/", $tagValue); - } + $parts = preg_split('/\/|\./', $tagValue); if (count($parts) == 1) { $view->field = $parts[0];