diff options
Diffstat (limited to 'src/templates/index.php')
| -rw-r--r-- | src/templates/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/templates/index.php b/src/templates/index.php index d246605..4f76614 100644 --- a/src/templates/index.php +++ b/src/templates/index.php @@ -12,7 +12,7 @@ <a href="/create">Add</a> <ul> <?php foreach ($bookmarks as $bookmark) { ?> - <li><a href="<?php echo $bookmark->url; ?>"><?php echo $bookmark->title != '' ? $bookmark->title : $bookmark->url; ?></a> <a href="/edit?id=<?php echo $bookmark->id; ?>">Edit</a> | <a href="/delete/confirm?id=<?php echo $bookmark->id; ?>">Delete</a></li> + <li><a href="<?php echo htmlentities($bookmark->url); ?>"><?php echo $bookmark->title != '' ? htmlentities($bookmark->title) : htmlentities($bookmark->url); ?></a> <a href="/edit?id=<?php echo $bookmark->id; ?>">Edit</a> | <a href="/delete/confirm?id=<?php echo $bookmark->id; ?>">Delete</a></li> <?php } ?> </ul> </body> |
