-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dne 16.6.2011 14:58, [email protected] napsal(a): > Author: locilka > Date: Thu Jun 16 14:58:44 2011 > New Revision: 64419 > > Modified: trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp > URL: > http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp?rev=64419&r1=64418&r2=64419&view=diff > ============================================================================== > --- trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp (original) > +++ trunk/yast2/library/network/src/SuSEFirewallExpertRules.ycp Thu Jun 16 > 14:58:44 2011 > @@ -83,7 +83,7 @@ > // A.B.C.D/1 - A.B.C.D/32 (IP with a numeric netmask) > else if (regexpmatch(network, "^" + type_ip4 + "/[01234567890]+$")) { > string part_ip = regexpsub (network, "^(" + type_ip4 + > ")/[01234567890]+$", "\\1"); > - string part_bits = regexpsub (network, "^" + type_ip4 + > "(/[01234567890])+$", "\\1"); > + string part_bits = regexpsub (network, "^" + type_ip4 + > "/([01234567890])+$", "\\1");
Ouch :) regexpsub (network, "^" + type_ip4 + "/([01234567890])+$", "\\1") should be regexpsub (network, "^" + type_ip4 + "/([01234567890]+)$", "\\1"); although it passes the tests - -- Lukas Ocilka, Appliances Department, SUSE LINUX s.r.o. MD: Jeff Hawn, Jennifer Guild, Alena Hendrichova -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iD8DBQFN+f8PVSqMdRCqTiwRAibZAJoDu33xLMb93n/Zw2cqOqrOhrS64wCfXZu8 nttdeTSNJzM+FfIVYfFMU3E= =iuE+ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
