From 9939f0f046198823857e316faaf08b267e7ec03d Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 15 Nov 2018 22:08:22 +0100 Subject: ID as strings. --- src/map/query/map_update.erl | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/map/query/map_update.erl') diff --git a/src/map/query/map_update.erl b/src/map/query/map_update.erl index a88992c..49ed1de 100644 --- a/src/map/query/map_update.erl +++ b/src/map/query/map_update.erl @@ -14,7 +14,7 @@ map_id :: binary(), w :: non_neg_integer(), h :: non_neg_integer(), - t :: list(list(non_neg_integer())) + t :: list(list(binary())) } ). @@ -55,22 +55,8 @@ parse_input (Req) -> lists:all ( fun (T) -> - [M|[V|B]] = T, - ( - (M > 0) - and (V >= 0) - and ((length(B) rem 2) == 0) - and - lists:all - ( - fun (Bo) -> - %% FIXME [SECURITY][LOW]: this does not prevent "Error" - %% tiles. - (Bo >= 0) - end, - B - ) - ) + [_M|[_V|B]] = T, + ((length(B) rem 2) == 0) end, MapContent ), -- cgit v1.2.3-70-g09d2