forked from ZwiiCMS-Team/ZwiiCMS
needle error
This commit is contained in:
parent
0128e3620d
commit
f05e2ae497
@ -601,6 +601,7 @@ class theme extends common {
|
|||||||
public function fontAdd() {
|
public function fontAdd() {
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if ($this->isPost()) {
|
if ($this->isPost()) {
|
||||||
|
|
||||||
$fontId = $this->getInput('fontAddFontId', null, true);
|
$fontId = $this->getInput('fontAddFontId', null, true);
|
||||||
$fontName = $this->getInput('fontAddFontName', null, true);
|
$fontName = $this->getInput('fontAddFontName', null, true);
|
||||||
$filePath = $this->getInput('fontAddFile', null);
|
$filePath = $this->getInput('fontAddFile', null);
|
||||||
@ -611,6 +612,7 @@ class theme extends common {
|
|||||||
$data = helper::urlGetContents('https://www.cdnfonts.com/' . $fontId . '.font');
|
$data = helper::urlGetContents('https://www.cdnfonts.com/' . $fontId . '.font');
|
||||||
|
|
||||||
if ( $filePath === ''
|
if ( $filePath === ''
|
||||||
|
&& $fontName !== ''
|
||||||
&& strpos($data, $fontName) === false
|
&& strpos($data, $fontName) === false
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user