Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
* sanitize ->title and ->title

* Resolves unsanitised player input

---------

Co-authored-by: Singe-Horizontal <[email protected]>
  • Loading branch information
Akkarinage and Singe-Horizontal authored Sep 16, 2024
1 parent 84f6d51 commit 43c61e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions themes/default/buyingstore/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
<td>
<img src="<?php echo $this->iconImage(671) ?>?nocache=<?php echo rand() ?>" />
<?php if ($auth->actionAllowed('buyingstore', 'viewshop')): ?>
<a href="<?php echo $this->url('buyingstore', 'viewshop', array("id" => $store->id)); ?>"><?php echo $store->title; ?></a>
<a href="<?php echo $this->url('buyingstore', 'viewshop', array("id" => $store->id)); ?>"><?php echo htmlspecialchars($store->title); ?></a>
<?php else: ?>
<?php echo $store->title ?>
<?php echo htmlspecialchars($store->title) ?>
<?php endif ?>
</td>

Expand Down
2 changes: 1 addition & 1 deletion themes/default/buyingstore/viewshop.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!defined('FLUX_ROOT')) exit; ?>
<h2><?php echo htmlspecialchars($title); ?></h2>
<?php if ($store): ?>
<h3 style="text-align:right; margin:0; padding:0;font-style: italic"><img style="position:relative;top:7px;" src="<?php echo $this->iconImage(671) ?>?nocache=<?php echo rand() ?>" /> <?php echo $store->title ?> </h3>
<h3 style="text-align:right; margin:0; padding:0;font-style: italic"><img style="position:relative;top:7px;" src="<?php echo $this->iconImage(671) ?>?nocache=<?php echo rand() ?>" /> <?php echo htmlspecialchars($store->title) ?> </h3>
<h4 style="text-align:right; color:blue; margin:0; margin-bottom:15px; "> <?php echo $store->map; ?>, <?php echo $store->x; ?>, <?php echo $store->y; ?> </h4>

<?php if ($items): ?>
Expand Down
4 changes: 2 additions & 2 deletions themes/default/vending/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<td>
<img src="<?php echo $this->iconImage(671) ?>?nocache=<?php echo rand() ?>" />
<?php if ($auth->actionAllowed('vending', 'viewshop')): ?>
<a href="<?php echo $this->url('vending', 'viewshop', array("id" => $vending->id)); ?>"><?php echo $vending->title; ?></a>
<a href="<?php echo $this->url('vending', 'viewshop', array("id" => $vending->id)); ?>"><?php echo htmlspecialchars($vending->title); ?></a>
<?php else: ?>
<?php echo $vending->title ?>
<?php echo htmlspecialchars($vending->title) ?>
<?php endif ?>
</td>

Expand Down
2 changes: 1 addition & 1 deletion themes/default/vending/viewshop.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!defined('FLUX_ROOT')) exit; ?>
<h2><?php echo htmlspecialchars($title); ?></h2>
<?php if ($vending): ?>
<h3 style="text-align:right; margin:0; padding:0;font-style: italic"><img style="position:relative;top:7px;" src="<?php echo $this->iconImage(671) ?>?nocache=<?php echo rand() ?>" /> <?php echo $vending->title ?> </h3>
<h3 style="text-align:right; margin:0; padding:0;font-style: italic"><img style="position:relative;top:7px;" src="<?php echo $this->iconImage(671) ?>?nocache=<?php echo rand() ?>" /> <?php echo htmlspecialchars($vending->title) ?> </h3>
<h4 style="text-align:right; color:blue; margin:0; margin-bottom:15px; "> <?php echo $vending->map; ?>, <?php echo $vending->x; ?>, <?php echo $vending->y; ?> </h4>

<?php if ($vending_items): ?>
Expand Down

0 comments on commit 43c61e8

Please sign in to comment.