Skip to content
Snippets Groups Projects
Commit 437b84ff authored by srosse's avatar srosse
Browse files

OO-636: check if the feed has a title in the logging framework to prevent RS

parent b4f1ed89
No related branches found
No related tags found
No related merge requests found
......@@ -417,6 +417,7 @@ public class LoggingResourceable implements ILoggingResourceable {
public static LoggingResourceable wrap(Feed feed) {
String title = feed.getTitle();
// truncate title after 230 chars
if (title == null) title = "";
if (title.length() > 230) title = title.substring(0, 229);
return new LoggingResourceable(feed, OlatResourceableType.feed, feed.getResourceableTypeName(),
String.valueOf(feed.getResourceableId()), title, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment