Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/microweber/microweber into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Feb 10, 2022
2 parents 07e9249 + fb91619 commit b66537f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Expand Up @@ -148,7 +148,7 @@ public function upload(Request $request)
);
}

$src = str_replace('..',false,$src);
$src = str_replace('..','',$src);

$checkFile = url2dir(trim($src));
$checkFile = normalize_path($checkFile, false);
Expand Down
Expand Up @@ -154,7 +154,7 @@ public function upload(Request $request)
'error' => 'You have not provided src to the file.'
);
}

$src = str_replace('..','',$src);
$checkFile = url2dir(trim($src));

$backupLocation = backup_location();
Expand Down
Expand Up @@ -154,7 +154,7 @@ public function upload(Request $request)
'error' => 'You have not provided src to the file.'
);
}

$src = str_replace('..','',$src);
$checkFile = url2dir(trim($src));

$backupLocation = backup_location();
Expand Down
8 changes: 4 additions & 4 deletions userfiles/modules/slider/index.php
Expand Up @@ -106,14 +106,14 @@
controls: <?php print $controls ? $controls : 'undefined'; ?>,
infiniteLoop: <?php print $loop ? $loop : 'undefined'; ?>,
adaptiveHeight: <?php print $adaptiveHeight ? $adaptiveHeight : 'undefined'; ?>,
auto: '<?php print $autoplay ? $autoplay : 'undefined'; ?>',
auto: <?php print $autoplay ? $autoplay : 'false'; ?>,
autoHover: '<?php print $pauseOnHover ? $pauseOnHover : 'undefined'; ?>',
pause: '<?php print $autoplaySpeed ? $autoplaySpeed : '3000'; ?>',
hideControlOnEnd: <?php print $hideControlOnEnd ? $hideControlOnEnd : 'undefined'; ?>,
mode: '<?php print $mode ? $mode : 'undefined'; ?>',
prevText: '<?php print $prevText ? $prevText : 'undefined'; ?>',
nextText: '<?php print $nextText ? $nextText : 'undefined'; ?>',
touchEnabled: <?php print $touchEnabled ? $touchEnabled : 'undefined'; ?>,
prevText: '<?php print $prevText ? $prevText : ''; ?>',
nextText: '<?php print $nextText ? $nextText : ''; ?>',
touchEnabled: <?php print $touchEnabled ? $touchEnabled : 'true'; ?>,
captions: true,
onSliderLoad: function () {
mw.trigger("mw.bxslider.onSliderLoad");
Expand Down
1 change: 1 addition & 0 deletions userfiles/modules/slider/options.php
Expand Up @@ -119,6 +119,7 @@
}

$autoplay = get_module_option('autoplay', $params['id']);

if ($autoplay) {
$autoplay = $autoplay;
} elseif (isset($params['autoplay'])) {
Expand Down

0 comments on commit b66537f

Please sign in to comment.