Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request from GHSA-hgjr-632x-qpp3
  • Loading branch information
ryuring committed Aug 25, 2021
1 parent 44f085f commit 568d4ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions app/webroot/theme/admin-third/UploaderFiles/admin/ajax_image.php
Expand Up @@ -5,16 +5,22 @@
*
* @copyright Copyright (c) baserCMS Users Community
* @link https://basercms.net baserCMS Project
* @package Uploader.View
* @package Uploader.View
* @since baserCMS v 3.0.10
* @license https://basercms.net/license/index.html
*/
$url = $this->BcBaser->getUrl($this->Uploader->getFileUrl($file['UploaderFile']['name']));

/**
* @var BcAppView $this
* @var array $file
* @var string $size
*/
$url = h($this->BcBaser->getUrl($this->Uploader->getFileUrl($file['UploaderFile']['name'])));
?>


<p class="url">
<a href="<?php echo $url ?>" target="_blank"><?php echo FULL_BASE_URL . $url ?></a>
<a href="<?php echo $url ?>" target="_blank"><?php echo Router::url($url, true) ?></a>
</p>
<p class="image">
<a href="<?php echo $url ?>"
Expand Down
Expand Up @@ -9,12 +9,18 @@
* @since baserCMS v 3.0.10
* @license https://basercms.net/license/index.html
*/
$url = $this->BcBaser->getUrl($this->Uploader->getFileUrl($file['UploaderFile']['name']));

/**
* @var BcAppView $this
* @var array $file
* @var string $size
*/
$url = h($this->BcBaser->getUrl($this->Uploader->getFileUrl($file['UploaderFile']['name'])));
?>


<p class="url">
<a href="<?php echo $url ?>" target="_blank"><?php echo FULL_BASE_URL . $url ?></a>
<a href="<?php echo $url ?>" target="_blank"><?php echo Router::url($url, true) ?></a>
</p>
<p class="image">
<a href="<?php echo $url ?>"
Expand Down

0 comments on commit 568d4ca

Please sign in to comment.