This commit is contained in:
Laurent Destailleur 2020-09-07 19:09:19 +02:00
parent de2f97ab4e
commit b6e537a7e5

View File

@ -1814,19 +1814,14 @@ class TCPDF_STATIC {
*/
public static function fopenLocal($filename, $mode)
{
if (strpos($filename, '//') === 0)
{
if (strpos($filename, '//') === 0) {
// Share folder on a (windows) server
// e.g.: "//[MyServerName]/[MySharedFolder]/"
//
// nothing to change
}
elseif (strpos($filename, '://') === false)
{
} elseif (strpos($filename, '://') === false) {
$filename = 'file://'.$filename;
}
elseif (stream_is_local($filename) !== true)
{
} elseif (stream_is_local($filename) !== true) {
return false;
}
@ -1862,8 +1857,8 @@ class TCPDF_STATIC {
* Wrapper for file_exists.
* Checks whether a file or directory exists.
* Only allows some protocols and local files.
* @param filename (string) Path to the file or directory.
* @return Returns TRUE if the file or directory specified by filename exists; FALSE otherwise.
* @param filename (string) Path to the file or directory.
* @return Returns TRUE if the file or directory specified by filename exists; FALSE otherwise.
* @public static
*/
public static function file_exists($filename) {
@ -1880,7 +1875,7 @@ class TCPDF_STATIC {
* Reads entire file into a string.
* The file can be also an URL.
* @param $file (string) Name of the file or URL to read.
* @return The function returns the read data or FALSE on failure.
* @return The function returns the read data or FALSE on failure.
* @author Nicola Asuni
* @since 6.0.025
* @public static
@ -2110,7 +2105,7 @@ class TCPDF_STATIC {
return $a['i'];
}
/**
* Array of page formats
* measures are calculated in this way: (inches * 72) or (millimeters * 72 / 25.4)