* Console:

- Fix numerous readme HTML errors
      - Fix flag locations in readmes
      - desktopgui.enable now defaults to false; run systray if false
      - Start icon app before console
      - Restore systray form in configservice.jsp
      - Only save lang when clicking on flags if desktopgui is running
      - Only allow two-letter lang code from cgi parameter
This commit is contained in:
zzz
2011-02-27 13:53:39 +00:00
parent 30373bf6df
commit 21f14ac22e
22 changed files with 260 additions and 190 deletions

View File

@@ -30,7 +30,8 @@ public class CSSHelper extends HelperBase {
/** change default language for the router but don't save it */
public void setLang(String lang) {
if (lang != null && lang.length() > 0)
// TODO: Protect with nonce or require POST
if (lang != null && lang.length() == 2)
_context.router().setConfigSetting(Messages.PROP_LANG, lang);
}