We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ae17f commit 5c3e4f9Copy full SHA for 5c3e4f9
phpmyfaq/admin/attachment.php
@@ -139,7 +139,11 @@
139
<strong><?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'] ?></strong>
140
</p>
141
<?php
142
- if (is_uploaded_file($_FILES['userfile']['tmp_name']) && !($_FILES['userfile']['size'] > $faqConfig->get('records.maxAttachmentSize'))) {
+ if (
143
+ is_uploaded_file($_FILES['userfile']['tmp_name']) &&
144
+ !($_FILES['userfile']['size'] > $faqConfig->get('records.maxAttachmentSize')) &&
145
+ $_FILES['userfile']['type'] !== "text/html"
146
+ ) {
147
$att = PMF_Attachment_Factory::create();
148
$att->setRecordId($recordId);
149
$att->setRecordLang($recordLang);
0 commit comments