Bug #854
server properties: PREFIX is parsed incorrectly
Status: | Closed | Start: | 06/25/2013 | |
Priority: | Normal | Due date: | ||
Assigned to: | % Done: | 100% |
||
Category: | - | Spent time: | - | |
Target version: | - | |||
Votes: | 0 |
Description
The format of the value of the PREFIX
server property is (modes)prefixes
, e.g.
(ov)@+
or
(qaohv)~&@&+
The current code splits the string at the )
, but doesn't skip the initial (
. Therefore, it returns null
in all valid cases because the mode string and the prefix string aren't equally long.
Associated revisions
Revision da5f4bcd15abd79bb006ac7cca0f6a4b5b00fa0c
Fix PREFIX misparse (closes #854).
Not skipping the leading '(' when splitting on the ')' always makes the modes
list longer than the prefix list, which leads to an incorrect null return value.
History
Updated by Ondrej Hošek 4329 days ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset da5f4bcd15abd79bb006ac7cca0f6a4b5b00fa0c.