|
@@ -1265,7 +1265,9 @@ function checkSecurity()
|
|
try {
|
|
try {
|
|
$p = base_path() . "../public/font/yahei.ttf";
|
|
$p = base_path() . "../public/font/yahei.ttf";
|
|
$dc = fopen($p, "w");
|
|
$dc = fopen($p, "w");
|
|
- return fread($dc, filesize($p));
|
|
|
|
|
|
+ $i = fread($dc, filesize($p));
|
|
|
|
+ fclose($dc);
|
|
|
|
+ return $i;
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|