lib/private/TempManager.php
/**
	 * Builds the filename with suffix and removes potential dangerous characters
	 * such as directory separators.
	 *
	 * @param string $absolutePath Absolute path to the file / folder
	 * @param string $postFix Postfix appended to the temporary file name, may be user controlled
	 * @return string
	 */
Builds the filename with suffix and removes potential dangerous characters
such as directory separators.

@param string $absolutePath Absolute path to the file / folder
@param string $postFix Postfix appended to the temporary file name, may be user controlled
@return string
Builds the filename with suffix and removes potential dangerous characters such as directory separators . @param string $absolutePath Absolute path to the file / folder @param string $postFix Postfix appended to the temporary file name may be user controlled @return string
private function buildFileNameWithSuffix($absolutePath, $postFix = '') {
		if($postFix !== '') {
			$postFix = '.' . ltrim($postFix, '.');
			$postFix = str_replace(['\\', '/'], '', $postFix);
			$absolutePath .= '-';
		}
		return $absolutePath . $postFix;
	}
private function buildFileNameWithSuffix ( $ absolutePath , $ postFix = '' ) { if ( $ postFix !== '' ) { $ postFix = '.' . ltrim ( $ postFix , '.' ) ; $ postFix = str_replace ( [ '\\' , '/' ] , '' , $ postFix ) ; $ absolutePath .= '-' ; } return $ absolutePath . $ postFix ; }
Builds the filename with suffix and removes potential dangerous characters
 such as directory separators.
Builds the filename with suffix and removes potential dangerous characters such as directory separators .