forked from I2P_Developers/i2p.i2p
* 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user