Skip to content

Commit 992b01b

Browse files
authored
Merge pull request #19937 from fabpiaf/patch-1
include ERB::Util for html_escape
2 parents da00168 + 58fbf9e commit 992b01b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/proto/http/server.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def send_e404(cli, request)
213213
"<title>404 Not Found</title>" +
214214
"</head><body>" +
215215
"<h1>Not found</h1>" +
216-
"The requested URL #{html_escape(request.resource)} was not found on this server.<p><hr>" +
216+
"The requested URL #{ERB::Util.html_escape(request.resource)} was not found on this server.<p><hr>" +
217217
"</body></html>"
218218

219219
# Send the response to the client like what

0 commit comments

Comments
 (0)