Issue #2043007 by Taran2l: Fixed incorrect query string parsing.