Skip to content

Commit d27baa8

Browse files
authored
Merge pull request #84 from brycied00d/revert_pr_57
Revert "Use full path for curl to prevent bugs or code"
2 parents 0aec57b + 3c13214 commit d27baa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matrix.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ function MatrixServer:Upload(room_id, filename)
16131613
local url = w.config_get_plugin('homeserver_url') ..
16141614
('_matrix/media/r0/upload?access_token=%s')
16151615
:format( urllib.quote(SERVER.access_token) )
1616-
w.hook_process_hashtable('/usr/bin/curl', {
1616+
w.hook_process_hashtable('curl', {
16171617
arg1 = '--data-binary', -- no encoding of data
16181618
arg2 = '@'..filename, -- @means curl will load the filename
16191619
arg3 = '-XPOST', -- HTTP POST method

0 commit comments

Comments
 (0)