bug 381264 nix 'track' method; r=biesi, sr=sicking

This commit is contained in:
dveditz@cruzio.com 2007-06-26 02:28:38 -07:00
Родитель 0c09568074
Коммит 66253fb571
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -998,8 +998,10 @@ nsXMLHttpRequest::OpenRequest(const nsACString& method,
NS_ENSURE_ARG(!method.IsEmpty());
NS_ENSURE_ARG(!url.IsEmpty());
// Disallow HTTP/1.1 TRACE method (see bug 302489).
if (method.LowerCaseEqualsASCII("trace")) {
// Disallow HTTP/1.1 TRACE method (see bug 302489)
// and MS IIS equivalent TRACK (see bug 381264)
if (method.LowerCaseEqualsASCII("trace") ||
method.LowerCaseEqualsASCII("track")) {
return NS_ERROR_INVALID_ARG;
}