diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-07-19 22:46:14 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-07-19 22:46:14 +0000 |
commit | 662bf6812ef0a4fa80cf137761f9b1b5a93821c0 (patch) | |
tree | 8ac4c4e78f1f0f38e867c019df64af3a9d25a00f /src/couchdb/couch_httpd_view.erl | |
parent | 11aa4f9db32ef33ef8b9e17ee2a685c95bc553b2 (diff) |
remove unguarded atom creation to prevent DOS attacks. closes COUCHDB-829
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@965667 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_view.erl')
-rw-r--r-- | src/couchdb/couch_httpd_view.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd_view.erl b/src/couchdb/couch_httpd_view.erl index 704136ca..65aa364a 100644 --- a/src/couchdb/couch_httpd_view.erl +++ b/src/couchdb/couch_httpd_view.erl @@ -196,10 +196,10 @@ reverse_key_default(?MAX_STR) -> ?MIN_STR; reverse_key_default(Key) -> Key. get_stale_type(Req) -> - list_to_atom(couch_httpd:qs_value(Req, "stale", "nil")). + list_to_existing_atom(couch_httpd:qs_value(Req, "stale", "nil")). get_reduce_type(Req) -> - list_to_atom(couch_httpd:qs_value(Req, "reduce", "true")). + list_to_existing_atom(couch_httpd:qs_value(Req, "reduce", "true")). load_view(Req, Db, {ViewDesignId, ViewName}, Keys) -> Stale = get_stale_type(Req), |