If a prefix occured mid action name it would be removed, corrupting the action name. Fixes #2831
umask(0) causes all files to be created with 666 permission. After input from jrbasso and AD7six, this was found to be an additional code to support caching using file engine. FileEngine has since moved to SplFile since 2.x and thus umask juggling is not required anymore. Refs: f9f1c4d Cherrypicked from 2.2 branch.
CakeEmail should be handling all the encoding now, duplicating it is silly. Fixes #2797
When extracting model validation messages, Reflection::getFileName is used to obtain the the model filename. The returned value is actual physical path and may differ to what APP is. Adding the realpath(APP) to $paths variable allows str_replace() to correctly generate the correct value for $occurences.
CakeTestSuite::addTestDirectory() and addTestDirectoryRecursive() now ignore any files that do not end in .php This avoids any stray non-php files being parsed, especially tilde-style backup files that end in .php~ Improves #2031 Signed-off-by: mark_story <email@example.com>