Bug #16098 ยป t3lib_div-dots.diff
class.t3lib_div-dots.php 2006-04-28 21:19:38.000000000 +0200 | ||
---|---|---|
* Usage: 14
|
||
*
|
||
* @param string Filepath to evaluate
|
||
* @return boolean True, if no '//', '..' or '\' is in the $theFile
|
||
* @return boolean True, if no '//', '../' or '\' is in the $theFile
|
||
* @todo Possible improvement: Should it rawurldecode the string first to check if any of these characters is encoded ?
|
||
*/
|
||
function validPathStr($theFile) {
|
||
if (!strstr($theFile,'//') && !strstr($theFile,'..') && !strstr($theFile,'\\')) return true;
|
||
if (!strstr($theFile,'//') && !strstr($theFile,'../') && !strstr($theFile,'\\')) return true;
|
||
}
|
||
/**
|