cakephp2-php8/lib/Cake/Utility
ndm2 87d86aaed9 Fix/tighten Folder::inPath() checks.
The current checks are way too relaxed, and are more like testing
for a substring, which makes it easy for invalid paths to slip
trough, for example `/foo/var/www` is falsely tested to reside in
`/var/www`.

Passing an empty path never worked properly, it was triggering a
warning, didn't worked on Windows, and the behavior that the current
top level directory would be assumed for empty paths wasn't
documented.

Similar is true for relative paths. While they did match at one point,
this was incorrect behavior, and matching actual path fragments seems
out of scope for this method.

This change makes the `$path` argument required, requires it to be an
absolute path, and throws an exception in case a non-absolute path is
being passed.
2016-08-26 13:45:45 +02:00
..
CakeNumber.php Replacing self with static due to PHP5.3+. Following #7040. 2015-07-21 10:22:53 +02:00
CakeText.php Correct doc block. 2015-10-27 21:17:10 +01:00
CakeTime.php Fix merge to + operator. 2015-08-24 06:33:04 +02:00
ClassRegistry.php Let IDE work better with ClassRegistry::init() 2015-01-27 19:06:46 +02:00
Debugger.php Remove censoring of schema and prefix from debug() 2015-10-15 12:55:32 +01:00
File.php fix php document of File::write() 2016-08-19 02:52:44 +09:00
Folder.php Fix/tighten Folder::inPath() checks. 2016-08-26 13:45:45 +02:00
Hash.php Replace Set by Hash 2016-02-23 13:09:03 +01:00
Inflector.php Correct inflection of virus. 2015-09-28 21:04:23 -04:00
ObjectCollection.php Consistently remove plugin names in object collections. 2015-07-23 21:46:21 -04:00
Sanitize.php Update all @deprecated annotations 2014-09-02 17:03:22 +02:00
Security.php Appease PHPCS. 2016-05-03 17:46:29 -04:00
Set.php Various improvments to the CakePH Plib files 2015-09-25 17:11:20 +02:00
String.php Merge branch 'master' into 2.7 2015-01-11 15:25:18 -05:00
Validation.php Merge branch 'backport-8741-8690' into 2.x 2016-04-30 13:11:34 -04:00
Xml.php Replacing self with static due to PHP5.3+. Following #7040. 2015-07-21 10:22:53 +02:00