Staredit Network

Staredit Network -> Staff Lounge -> DLDB file rating bug
Report, edit, etc...Posted by BeeR_KeG on 2006-01-03 at 10:37:27
http://www.staredit.net/index.php?showtopic=25183

So this user reported a bug and I started to think how is it possible to rate a map with say 100.
It's very simple actually. If you can see, when you are going to click on one of the rating bars, it shows the link that you will execute on your browser. The rating system goes from 1-10. So just copy the link in your address bar and write in any number that you want from 1-infinity. I still don't know if I can input in any negative numbers.

For now, I'd just disable ratings since fixing this DLDB would be useless since a new one would be coded in SeNv5.

If you wish to fix it, I'd suggest that if http://www.staredit.net/index.php?act=down...ing&id=X&rate=Y is inputed into the server(Where X is a file ID of the DLDB and 1>Y>10) it would return an error in which no script would be run.

Something as simple as this should work:

$Y="input.php";
switch($Y)
{
case ($Y<1):
include ("error.php");
case ($Y>10):
include ("error.php");
Default:
include ("script.php");
}

input.php would be the file which that collects the data.
error.php would be the error page which stops any new scripts.
script.php would be correct input and excecute the script normally.
Report, edit, etc...Posted by Mini Moose 2707 on 2006-01-03 at 15:02:01
Fixed.
Report, edit, etc...Posted by BeeR_KeG on 2006-01-03 at 16:14:17
What about the files which already have insane rating?
Like this: http://www.staredit.net/index.php?dlcategory=5
Report, edit, etc...Posted by Mini Moose 2707 on 2006-01-03 at 17:26:39
Not much I can do unless you know the old ratings. :/
Next Page (1)