forked from I2P_Developers/i2p.i2p
* Console:
- Fix update buttons - Don't filter parameter names starting with "nofilter_" - Re-allow configadvanced, news URL, and unsigned update URL if routerconsole.advanced=true - Re-allow plugin install if routerconsole.advanced=true or routerconsole.enablePluginInstall=true - Only allow whitelisted plugin signers, unless routerconsole.allowUntrustedPlugins=true - Re-allow clients.config changes if routerconsole.advanced=true or routerconsole.enableClientChange=true - More escaping * i2psnark: Fix add torrent form
This commit is contained in:
@@ -21,8 +21,10 @@ public class ConfigAdvancedHandler extends FormHandler {
|
||||
@Override
|
||||
protected void processForm() {
|
||||
if (_shouldSave) {
|
||||
//saveChanges();
|
||||
addFormError("Save disabled, edit the router.config file to make changes") ;
|
||||
if (isAdvanced())
|
||||
saveChanges();
|
||||
else
|
||||
addFormError("Save disabled, edit the router.config file to make changes") ;
|
||||
} else {
|
||||
// noop
|
||||
}
|
||||
@@ -31,7 +33,7 @@ public class ConfigAdvancedHandler extends FormHandler {
|
||||
public void setShouldsave(String moo) { _shouldSave = true; }
|
||||
//public void setRestart(String moo) { _forceRestart = true; }
|
||||
|
||||
public void setConfig(String val) {
|
||||
public void setNofilter_config(String val) {
|
||||
_config = val;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user