[yast-commit] r57290 - /branches/SuSE-SLE-10-SP3-Branch/slp-server/src/dialogs.ycp

Author: mzugec Date: Thu May 21 14:13:32 2009 New Revision: 57290 URL: http://svn.opensuse.org/viewcvs/yast?rev=57290&view=rev Log: added validation Modified: branches/SuSE-SLE-10-SP3-Branch/slp-server/src/dialogs.ycp Modified: branches/SuSE-SLE-10-SP3-Branch/slp-server/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP3-Branch/slp-ser... ============================================================================== --- branches/SuSE-SLE-10-SP3-Branch/slp-server/src/dialogs.ycp (original) +++ branches/SuSE-SLE-10-SP3-Branch/slp-server/src/dialogs.ycp Thu May 21 14:13:32 2009 @@ -22,6 +22,7 @@ import "LogView"; import "IP"; import "String"; +import "Address"; include "slp-server/helps.ycp"; void initServerSettings(string key); @@ -580,11 +581,9 @@ { boolean ip_valid = true; if ((string)UI::QueryWidget(`id(`ip), `Value) == "") ip_valid = false; -/* foreach(string ip, splitstring((string)UI::QueryWidget(`id(`ip), `Value), ","), { - if(!IP::Check(String::CutBlanks(ip))) ip_valid = false; + if(!Address::Check4(String::CutBlanks(ip)) && !Address::Check6(String::CutBlanks(ip))) ip_valid = false; }); -*/ if (!ip_valid){ Popup::Error (_("Scope and IP address must be inserted.")); return false; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mzugec@svn.opensuse.org