Yeah I was trying to figure it out to fix, but apparently my php is weak. The problem is in admin/includes/config.class.php the only changed in SVN-806
I can't decipher around line 225 in admin/includes/config.class.php
$query .= "( '$name', '" . get_magic_quotes_gpc() ? $this->$name : addslashes($this->$name) . "' ), ";
I just changed it back to svn-805
$query .= "( '$name', '" . addslashes($this->$name) . "' ), ";