single-line change to make unlisted levels work
This commit is contained in:
parent
903a7dd869
commit
50c3f00035
|
@ -21,7 +21,8 @@ CrystalGauntlet.endpoints["/getGJLevels21.php"] = ->(body : String): String {
|
||||||
|
|
||||||
if searchQuery != ""
|
if searchQuery != ""
|
||||||
if searchQuery.to_i?
|
if searchQuery.to_i?
|
||||||
queryParams << "levels.id = #{searchQuery.to_i}"
|
# we do this to get rid of the initial "unlisted = 0" bit
|
||||||
|
queryParams = ["levels.id = #{searchQuery.to_i}"]
|
||||||
else
|
else
|
||||||
# no sql injections to see here; clean_char only leaves A-Za-z0-9 intact
|
# no sql injections to see here; clean_char only leaves A-Za-z0-9 intact
|
||||||
# todo: make this configurable w/ fuzzy search
|
# todo: make this configurable w/ fuzzy search
|
||||||
|
|
Loading…
Reference in New Issue