references:joomla.framework:filesystem:jpath-checkcheck
Checks for snooping outside of the file system root. This prevents paths being used which either use .. to move up the folder tree or paths which do not start at JPATH_ROOT. This method does not return a value but will raise an error using the JError class if there is a problem with the path. Syntaxvoid check ( $path )
ExamplesExample jimport( 'joomla.filesystem.path' ); JPath::check( '/../../../test.html' ); will produce an error. Discussion |


