To Reproduce
Steps to reproduce the behavior:
1- make a post (let's say it will be the 73th post on the board and your IP address is 123.456.234.45)
2- go that posts ban page (koko.php?mode=module&load=mod_adminban&no=73&ip=123.456.234.45)
3- put random numbers instead where it says "123.456.234.45"
4- repeat step 3 3-4 times so you have a non-empty ban list
5- go to koko.php?mode=module&load=mod_adminban
6- put random numbers in the IP area again and ban it
7- get the "ERROR: Post does not exist"
Describe the bug
Doing so will wipe all bans except for the very last one which called this bug.
Expected behavior
First of all, if the post no is "0" (which is the default), it shouldn't give the "ERROR: Post does not exist". It should simply return back to the ban panel (which would be the case if post no "0" actually existed in theory).
If the post number is something other than "0" but still doesn't exist, it should then give that error, but obviously shouldn't wipe the ban list clear. It should still add the IP to the ban list with the specified expiration date in this case (this last sentence is optional).
To Reproduce Steps to reproduce the behavior: 1- make a post (let's say it will be the 73th post on the board and your IP address is 123.456.234.45) 2- go that posts ban page (koko.php?mode=module&load=mod_adminban&no=73&ip=123.456.234.45) 3- put random numbers instead where it says "123.456.234.45" 4- repeat step 3 3-4 times so you have a non-empty ban list 5- go to koko.php?mode=module&load=mod_adminban 6- put random numbers in the IP area again and ban it 7- get the "ERROR: Post does not exist"
Describe the bug Doing so will wipe all bans except for the very last one which called this bug.
Expected behavior