Skip to content

Commit 0303c81

Browse files
Added a check for ZSET values (#204)
1 parent c7229f0 commit 0303c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}
8383

8484
// ZSet
85-
else if (($_POST['type'] == 'zset') && isset($_POST['score'])) {
85+
else if (($_POST['type'] == 'zset') && isset($_POST['score']) && is_numeric($_POST['score'])) {
8686
// The only way to edit a ZSet value is to add it and remove the old value.
8787
$redis->zRem($key, encodeOrDecode('save', $key, input_convert($_POST['oldvalue'])));
8888
$redis->zAdd($key, input_convert($_POST['score']), $value);

0 commit comments

Comments
 (0)