]> granicus.if.org Git - ejabberd/commitdiff
Fix unnecessary call to xml:crypt/1 (thanks to Janusz Dziemidowicz)(EJAB-1064)
authorBadlop <badlop@process-one.net>
Mon, 19 Oct 2009 10:30:41 +0000 (10:30 +0000)
committerBadlop <badlop@process-one.net>
Mon, 19 Oct 2009 10:30:41 +0000 (10:30 +0000)
SVN Revision: 2672

src/xml.erl

index c7f1c0e11969ce518c76106c7bdddbeb3f450c19..aeb085ea57ec934562d15b6a204820a1a0078879 100644 (file)
@@ -79,7 +79,7 @@ attrs_to_list(Attrs) ->
     [attr_to_list(A) || A <- Attrs].
 
 attr_to_list({Name, Value}) ->
-    [$\s, crypt(Name), $=, $', crypt(Value), $'].
+    [$\s, Name, $=, $', crypt(Value), $'].
 
 crypt(S) when is_list(S) ->
     [case C of