Sanitization
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<div class="col">
|
||||
<div class="card h-100">
|
||||
<div class="card h-100 shadow-sm">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title lh-base text-truncate"><?= $comment->title ?></h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted"><?= $comment->name ?></h6>
|
||||
<h5 class="card-title lh-base text-truncate"><?= htmlspecialchars($comment->title) ?></h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted"><?= htmlspecialchars($comment->name) ?></h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p class="card-text"><?= $comment->comment ?></p>
|
||||
<p class="card-text"><?= nl2br(htmlspecialchars($comment->comment)) ?></p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<small class="text-muted">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<form action="./actions/comment.php" method="post" class="needs-validation row m-0" novalidate>
|
||||
<div class="col">
|
||||
<div class="col m-0 g-3">
|
||||
<h4 class="mb-3">Leave a Comment!</h4>
|
||||
<div class="mb-3">
|
||||
<input class="form-control" type="text" name="title" required placeholder="A catching title" />
|
||||
@@ -19,7 +19,7 @@
|
||||
Please enter text.
|
||||
</div>
|
||||
</div>
|
||||
<div class="progress mb-3">
|
||||
<div class="progress mb-2">
|
||||
<div class="progress-bar" id="comment-count" style="width: 0;"></div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary mb-3">Comment</button>
|
||||
|
||||
Reference in New Issue
Block a user