changeset 465:dcf645be0f22

Limit length of things.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Dec 2013 19:04:19 +0200
parents a678e904633f
children fd192840dbea
files admajax.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Fri Dec 06 19:01:36 2013 +0200
+++ b/admajax.php	Fri Dec 06 19:04:19 2013 +0200
@@ -373,7 +373,7 @@
   if (($slist = stFetchSQL($sql)) === false)
     $str .= "-";
   else
-    $str .= chentities($slist["name"]);
+    $str .= chentities(substr($slist["name"], 0, 30));
 
   return $str.($outer ? "</div>\n" : "");
 }