Skip to content

Commit 30cdd82

Browse files
author
Daniel Neto
committed
fix: correct string handling in downloadURLOrAlertError function
1 parent 6de2f2f commit 30cdd82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/CDN/downloadButtons.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<script>
8080
function _goToURLOrAlertError(url, progress, format) {
8181
avideoToastSuccess(<?php echo json_encode(__('Downloading') . '... ' . $video['title']); ?>);
82-
downloadURLOrAlertError(url, {}, '<?php echo $video['clean_title']; ?>.' + format, progress);
82+
downloadURLOrAlertError(url, {}, <?php echo json_encode($video['clean_title']); ?> + '.' + format, progress);
8383
}
8484
</script>
8585
<?php
@@ -95,4 +95,4 @@ function _goToURLOrAlertError(url, progress, format) {
9595
?>
9696
<?php
9797
$_page->print();
98-
?>
98+
?>

0 commit comments

Comments
 (0)