Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Encode special HTML characters
  • Loading branch information
john committed Apr 24, 2017
1 parent 84fd2e5 commit 2202b45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/messages.php
Expand Up @@ -43,11 +43,11 @@ include 'template/user_menu_button.php';
class="material-icons red-text">fiber_new class="material-icons red-text">fiber_new
</i> </i>
<?php } ?> <?php } ?>
<?php echo $message->sender()->username ?> <?php echo htmlspecialchars($message->sender()->username) ?>
</div> </div>
<div class="collapsible-body"> <div class="collapsible-body">
<span> <span>
<?php echo $message->message ?> <?php echo htmlspecialchars($message->message) ?>
</span> </span>
</div> </div>
</li> </li>
Expand All @@ -64,11 +64,11 @@ include 'template/user_menu_button.php';
<?php } else { ?> <?php } else { ?>
<i class="material-icons">arrow_forward</i> <i class="material-icons">arrow_forward</i>
<?php } ?> <?php } ?>
<?php echo $message->receiver()->username ?> <?php echo htmlspecialchars($message->receiver()->username) ?>
</div> </div>
<div class="collapsible-body"> <div class="collapsible-body">
<span> <span>
<?php echo $message->message ?> <?php echo htmlspecialchars($message->message) ?>
</span> </span>
</div> </div>
</li> </li>
Expand Down

0 comments on commit 2202b45

Please sign in to comment.