Changeset

2636:9ed6d44b9fed

mod_admin_message: Fix invalid character escape (fixes #626)
author Kim Alvefur <zash@zash.se>
date Wed, 22 Mar 2017 14:35:23 +0100
parents 2635:4548c3d685b4
children 2637:39c39844cd4c
files mod_admin_message/mod_admin_message.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_admin_message/mod_admin_message.lua	Tue Mar 21 15:56:43 2017 +0100
+++ b/mod_admin_message/mod_admin_message.lua	Wed Mar 22 14:35:23 2017 +0100
@@ -85,7 +85,7 @@
 	admin_telnet.console:process_line(session, body.."\n");
 
 	-- Strip trailing blank line
-	session.fulltext = tostring(session.fulltext):gsub("\n\|%s*$", "")
+	session.fulltext = tostring(session.fulltext):gsub("\n|%s*$", "")
 
 	-- Send the reply stanza
 	local reply_stanza = st.message({ from = host, to = userjid,