Don't allow invalid jids to be constructed

Stephen Paul Weber created

Change summary

lib/customer.rb | 1 +
1 file changed, 1 insertion(+)

Detailed changes

lib/customer.rb 🔗

@@ -106,6 +106,7 @@ class Customer
 	end
 
 	def fetch_pep(node, from_tel=nil)
+		from_tel = nil unless from_tel.to_s.start_with?("+")
 		iq = Blather::Stanza::PubSub::Items.new(:get)
 		iq.node = node
 		iq.from = Blather::JID.new(from_tel, CONFIG[:component][:jid])