Skip to content

Commit

Permalink
fix: xss bug (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar committed Aug 12, 2020
1 parent f29e2c7 commit 0a265f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/serverless-spec-builder/wrapper.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const getHandler = (hanlderName) => {
}
ctx.status = 404;
ctx.set('Content-Type', 'text/html');
return '<h1>404 Page Not Found</h1><hr />Request path: ' + ctxPath + '<hr /><div style="font-size: 12px;color: #999999;">Powered by <a href="https://github.com/midwayjs/midway">Midway Serverless</a></div>';
return '<h1>404 Page Not Found</h1>';
}; <% } %>
}
<% }); %>
Expand Down

0 comments on commit 0a265f3

Please sign in to comment.