Skip to content

Commit 1d5d33f

Browse files
committed
use normalize_uri()
1 parent c6a7a4e commit 1d5d33f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/admin/http/rails_devise_pass_reset.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def generate_token(account)
6363
postdata="user[email]=#{account}"
6464

6565
res = send_request_cgi({
66-
'uri' => datastore['TARGETURI'],
66+
'uri' => normalize_uri(datastore['TARGETURI']),
6767
'method' => 'POST',
6868
'data' => postdata,
6969
})
@@ -107,7 +107,7 @@ def reset_one(password, report=false)
107107
xml << "</user>"
108108

109109
res = send_request_cgi({
110-
'uri' => datastore['TARGETURI'] || "/",
110+
'uri' => normalize_uri(datastore['TARGETURI']),
111111
'method' => 'PUT',
112112
'ctype' => 'application/xml',
113113
'data' => xml,

0 commit comments

Comments
 (0)