[aur-dev] [PATCH] aurjson: Do not interpret hexadecimal strings as IDs
When performing info or multiinfo queries, one can either pass package
names or package IDs are parameters. Currently, strings like "0xdbe" are
parsed as package IDs which is not what we want. Change the parser such
that only strings matching [0-9]+ are treated as IDs.
Fixes FS#47324.
Signed-off-by: Lukas Fleischer
On Sat, 12 Dec 2015 at 18:38:01, Lukas Fleischer wrote:
When performing info or multiinfo queries, one can either pass package names or package IDs are parameters. Currently, strings like "0xdbe" are parsed as package IDs which is not what we want. Change the parser such that only strings matching [0-9]+ are treated as IDs.
Fixes FS#47324.
Signed-off-by: Lukas Fleischer
--- web/lib/aurjson.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) [...]
Dave and me just discussed this patch on IRC. I will drop this from pu and replace it with another patch that removes the possibility to search by package IDs altogether.
participants (1)
-
Lukas Fleischer