Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Replace -> ReplaceAll
Gabe Kangasc55a888c61fa
diff --git a/core/chat/events.go b/core/chat/events.goindex 5213eba640..dec9a5aeab 100644--- a/core/chat/events.go+++ b/core/chat/events.go@@ -141,8 +141,8 @@ func (s *Server) userMessageSent(eventData chatClientEvent) {func logSanitize(userValue string) string {// strip carriage return and newline from user-submitted values to prevent log injection- sanitizedValue := strings.Replace(userValue, "\n", "", -1)- sanitizedValue = strings.Replace(sanitizedValue, "\r", "", -1)+ sanitizedValue := strings.ReplaceAll(userValue, "\n", "")+ sanitizedValue = strings.ReplaceAll(sanitizedValue, "\r", "")return fmt.Sprintf("userSuppliedValue(%s)", sanitizedValue)}