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