Skip to content

Commit 5b5d9f0

Browse files
committed
tools/submit: accept hexadecimal msgid notation
1 parent 18d961b commit 5b5d9f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/submit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
if (empty($user_id)) {
1616
die("cannot find " . $argv[1] . "'s information from database");
1717
}
18-
$loc_string = sprintf("/exmdb=3:%d:%x", $user_id, $argv[2]);
18+
$msgid = intval($argv[2], 0);
19+
$loc_string = sprintf("/exmdb=3:%d:%x", $user_id, $msgid);
1920
// append a null terminate character for C
2021
$loc_string .= hex2bin('00');
2122
$_SERVER['REMOTE_USER'] = $argv[1];

0 commit comments

Comments
 (0)