Skip to content

Commit 4e2238d

Browse files
huyxerikdubbelboer
authored andcommitted
Remove maxlength limit from edit control.
Update view.php
1 parent f419e7f commit 4e2238d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@
147147

148148
<p>
149149
<label for="key">Key:</label>
150-
<input type="text" name="key" id="key" size="30" maxlength="30" <?php echo isset($_GET['key']) ? 'value="'.format_html($_GET['key']).'"' : ''?>>
150+
<input type="text" name="key" id="key" size="30" <?php echo isset($_GET['key']) ? 'value="'.format_html($_GET['key']).'"' : ''?>>
151151
</p>
152152

153153
<p id="hkeyp">
154154
<label for="khey">Hash key:</label>
155-
<input type="text" name="hkey" id="hkey" size="30" maxlength="30" <?php echo isset($_GET['hkey']) ? 'value="'.format_html($_GET['hkey']).'"' : ''?>>
155+
<input type="text" name="hkey" id="hkey" size="30" <?php echo isset($_GET['hkey']) ? 'value="'.format_html($_GET['hkey']).'"' : ''?>>
156156
</p>
157157

158158
<p id="indexp">

view.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
case 'hash':
7070
$values = $redis->hGetAll($_GET['key']);
7171
$size = count($values);
72+
ksort($values);
7273
break;
7374

7475
case 'list':
@@ -78,6 +79,7 @@
7879
case 'set':
7980
$values = $redis->sMembers($_GET['key']);
8081
$size = count($values);
82+
sort($values);
8183
break;
8284

8385
case 'zset':

0 commit comments

Comments
 (0)