summaryrefslogtreecommitdiff
path: root/src/mod_http_upload.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_http_upload.erl')
-rw-r--r--src/mod_http_upload.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl
index 9fdd3438..59570b0b 100644
--- a/src/mod_http_upload.erl
+++ b/src/mod_http_upload.erl
@@ -669,7 +669,7 @@ mk_slot(PutURL, GetURL, XMLNS) ->
-spec make_user_string(jid(), sha1 | node) -> binary().
make_user_string(#jid{luser = U, lserver = S}, sha1) ->
- p1_sha:sha(<<U/binary, $@, S/binary>>);
+ str:sha(<<U/binary, $@, S/binary>>);
make_user_string(#jid{luser = U}, node) ->
re:replace(U, <<"[^a-zA-Z0-9_.-]">>, <<$_>>, [global, {return, binary}]).