core-util: Don't accept random words in pa_parse_boolean()
authorTanu Kaskinen <tanuk@iki.fi>
Wed, 13 Jun 2012 08:15:03 +0000 (11:15 +0300)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 3 Jun 2013 19:08:40 +0000 (00:38 +0530)
commit1fd79c443953892e3c7013d35d1f5ee7aeb413c1
treec22138d49cc64cb19d174f4bdff8609feb550f1c
parent0af05213be59e54934c79d7be77b5d2dfb6fe6e7
core-util: Don't accept random words in pa_parse_boolean()

The old code accepted any word that started with "y", "Y",
"n", "N", "t", "T", "f" or "F". Fix this by having
a whitelist of full strings instead of checking just the
first letter.
src/pulsecore/core-util.c