From b98f5858af010ea4c0f6a757410cd1c8ec72fa25 Mon Sep 17 00:00:00 2001 From: unwox Date: Tue, 22 Oct 2024 10:54:42 +0600 Subject: hide description for products --- bin/serve.fnl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/serve.fnl b/bin/serve.fnl index d1be6be..51f5d6b 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -250,9 +250,7 @@ product.price-per (< 0 product.price-per)) [:NO-ESCAPE (.. " (" product.price-per "₽ за 1 гр.)")] - "")] - ;; FIXME: security issue - [:small {} [:NO-ESCAPE (unescape (str.truncate product.description 200))]]]) + "")]]) (fn paginator-template [form page limit total] (local last-page (math.ceil (/ total limit))) -- cgit v1.2.3