Merge pull request #1294 from lrbn86/master

Sanitize the playlist name
This commit is contained in:
John Grosh
2023-02-14 12:22:51 -05:00
committed by GitHub

View File

@@ -72,6 +72,7 @@ public class PlaylistCmd extends OwnerCommand
protected void execute(CommandEvent event)
{
String pname = event.getArgs().replaceAll("\\s+", "_");
pname = pname.replaceAll("[*?|\\/\":<>]", "");
if(pname == null || pname.isEmpty())
{
event.replyError("Please provide a name for the playlist!");