summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-10-22 10:54:42 +0600
committerunwox <me@unwox.com>2024-10-22 10:54:42 +0600
commitb98f5858af010ea4c0f6a757410cd1c8ec72fa25 (patch)
treece1c7ee3ada8b1b816afd09eed3f5938cbac3cf8
parent477dd002b008db50361d9a87a12c6731cccb6b78 (diff)
hide description for products
-rw-r--r--bin/serve.fnl4
1 files changed, 1 insertions, 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 "₽ за&nbsp;1&nbsp;гр.)")]
- "")]
- ;; 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)))