summaryrefslogtreecommitdiff
path: root/src/templates/form_fields.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/form_fields.php')
-rw-r--r--src/templates/form_fields.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/templates/form_fields.php b/src/templates/form_fields.php
index cfacfda..3f54040 100644
--- a/src/templates/form_fields.php
+++ b/src/templates/form_fields.php
@@ -1,12 +1,12 @@
-<input type="text" name="url" maxlength="512" value="<?php echo $old->get('url', $bookmark->url); ?>" autofocus><br>
+<input type="text" name="url" maxlength="512" value="<?php echo htmlspecialchars($old->get('url', $bookmark->url)); ?>" autofocus><br>
<?php if ($errors->has('url')) { ?>
<p><?php echo implode(', ', $errors->get('url')); ?></p>
<?php } ?>
-<input type="text" name="title" maxlength="256" value="<?php echo $old->get('title', $bookmark->title); ?>"><br>
+<input type="text" name="title" maxlength="256" value="<?php echo htmlspecialchars($old->get('title', $bookmark->title)); ?>"><br>
<?php if ($errors->has('title')) { ?>
<p><?php echo implode(', ', $errors->get('title')); ?></p>
<?php } ?>
-<input type="text" name="tag" maxlength="8" value="<?php echo $old->get('tag', $bookmark->tag); ?>"><br>
+<input type="text" name="tag" maxlength="8" value="<?php echo htmlspecialchars($old->get('tag', $bookmark->tag)); ?>"><br>
<?php if ($errors->has('tag')) { ?>
<p><?php echo implode(', ', $errors->get('tag')); ?></p>
<?php } ?>