Only treat /open param as count if single digit
parent
2d36c4d7c9
commit
6574f012c9
|
@ -337,8 +337,8 @@ static void commandClose(uint id, char *params) {
|
||||||
static void commandOpen(uint id, char *params) {
|
static void commandOpen(uint id, char *params) {
|
||||||
if (!params) {
|
if (!params) {
|
||||||
urlOpenCount(id, 1);
|
urlOpenCount(id, 1);
|
||||||
} else if (isdigit(params[0])) {
|
} else if (isdigit(params[0]) && !params[1]) {
|
||||||
urlOpenCount(id, strtoul(params, NULL, 10));
|
urlOpenCount(id, params[0] - '0');
|
||||||
} else {
|
} else {
|
||||||
urlOpenMatch(id, params);
|
urlOpenMatch(id, params);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue