2014-04-09, 16:37:10
(2014-04-09, 09:16:20)lindquist Wrote: Had to change two instances of
Code:$u .= (strpos($u,'?') !== false ? '&' : '?') . I18N_SET_LANGUAGE_PARAM . '=' . $language;
in the i18n_base/frontend.class.php
so it outputs '&' instead of the raw '&' to pass HTML validation
That's definitely the wrong place to do this. The methods here return the URL itself, not the URL encoded for use in HTML. If you use any URLs on the page, you must encode them with htmlspecialchars(,,,), as e.g. described here.
On the other hand, the method outputLinkTo in this file should use htmlspecialchars for the URL - I'll fix it in the next version.