fix corruption of update urls

This commit is contained in:
zzz
2009-01-05 20:30:36 +00:00
parent 4f836a20e1
commit 831f09c91a
2 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ public class ConfigUpdateHandler extends FormHandler {
}
if ( (_updateURL != null) && (_updateURL.length() > 0) ) {
_updateURL = _updateURL.replaceAll("\r\n", ",").replaceAll("\n", ",");
String oldURL = _context.router().getConfigSetting(PROP_UPDATE_URL);
if ( (oldURL == null) || (!_updateURL.equals(oldURL)) ) {
_context.router().setConfigSetting(PROP_UPDATE_URL, _updateURL);