mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template/Update (Part 38)
* split Screenshot upload & management into separate endpoints * move shared functions to manager classes * cleanup javascript * move test for config screenshot min size to cfg class
This commit is contained in:
@@ -86,10 +86,7 @@ trait TrCommunityHelper
|
||||
$caption = trim(preg_replace('/\s{2,}/', ' ', $caption));
|
||||
|
||||
// shorten to fit db
|
||||
$caption = substr($caption, 0, 200);
|
||||
|
||||
// jsEscape just in case
|
||||
return Util::jsEscape($caption);
|
||||
return substr($caption, 0, 200);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user