diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-21 14:00:11 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-21 14:00:11 +0200 |
commit | 470ff90cfa4fa50a25e428454465da37aff0aa40 (patch) | |
tree | db3544ee6ca49a57459458c5248997c38a3ddc28 /app/view | |
parent | 73ee4462740c0c7d793bb8e0952e34110dfdb78b (diff) | |
download | wcms-470ff90cfa4fa50a25e428454465da37aff0aa40.tar.gz wcms-470ff90cfa4fa50a25e428454465da37aff0aa40.zip |
Bug fix : limit bookmark id length
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/homemenu.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/view/templates/homemenu.php b/app/view/templates/homemenu.php index 46e2308..1003f7d 100644 --- a/app/view/templates/homemenu.php +++ b/app/view/templates/homemenu.php @@ -101,7 +101,7 @@ <?php } ?> <?php if($user->issupereditor()) { ?> <form action="<?= $this->url('homebookmark') ?>" method="post"> - <input type="text" name="id" placeholder="bookmark id"> + <input type="text" name="id" placeholder="bookmark id" minlength="1" maxlength="16"> <input type="hidden" name="query" value="<?= $opt->getadress() ?>"> <input type="submit" name="action" value="add"> </form> @@ -125,7 +125,7 @@ <p>This will store your filters settings as a Bookmark that only you can use.</p> <?php } ?> <form action="<?= $this->url('homebookmark') ?>" method="post"> - <input type="text" name="id" placeholder="bookmark id"> + <input type="text" name="id" placeholder="bookmark id" minlength="1" maxlength="16"> <input type="hidden" name="query" value="<?= $opt->getadress() ?>"> <input type="hidden" name="user" value="<?= $user->id() ?>"> <input type="submit" name="action" value="add"> |