Support auth cookies with : characters
authorRobert Newson <rnewson@apache.org>
Sun, 18 Nov 2012 19:02:07 +0000 (19:02 +0000)
committerRobert Newson <rnewson@apache.org>
Sun, 18 Nov 2012 19:02:07 +0000 (19:02 +0000)
commitd9566c831d002be16f866f0065a905bc23773cf9
treef86ef19fc31da61fa61e48b50c0d3969f5c86bde
parent2774531ff2946c0155dc6cb2af153e6378c41963
Support auth cookies with : characters

The parts of a couchdb authentication cookie are separated by
colons. One of these parts can contain colons and, more rarely, runs
of colons. The string:tokens function silently drops any empty token,
thus giving a spurious failure for valid input. The fix changes this
mechanism to one that losslessly decodes this part.

COUCHDB-1607
src/couchdb/couch_httpd_auth.erl