Skip to content

Commit

Permalink
fix form warning and make check case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnyga committed Jul 27, 2018
1 parent 4396fb2 commit aff1de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AllowedUploadsPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function checkUpload($hookName, $params) {

$userVars = $request->getUserVars();
$fileName = $userVars['name'];
$extension = array_pop(explode('.',$fileName));
$extension = strtolower(array_pop(explode('.',$fileName)));

$allowedExtensions = $this->getSetting($context->getId(), 'allowedExtensions');

Expand Down
2 changes: 1 addition & 1 deletion templates/settingsForm.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div id="description">{translate key="plugins.generic.allowedUploads.manager.settings.description"}</div>

{fbvFormArea id="allowedUploadsSettingsFormArea"}
{fbvElement type="text" name="allowedExtensions" value=$allowedExtensions label="plugins.generic.allowedUploads.manager.settings.allowedExtensions"}
{fbvElement type="text" id="allowedExtensions" name="allowedExtensions" value=$allowedExtensions label="plugins.generic.allowedUploads.manager.settings.allowedExtensions"}
{/fbvFormArea}

{fbvFormButtons}
Expand Down

0 comments on commit aff1de0

Please sign in to comment.