[freeside-commits] freeside/FS/FS svc_broadband.pm, 1.10.2.1, 1.10.2.2
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Feb 13 15:49:02 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14506/FS/FS
Modified Files:
Tag: FREESIDE_1_7_BRANCH
svc_broadband.pm
Log Message:
svc_broadband MAC searches RT#2985
Index: svc_broadband.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_broadband.pm,v
retrieving revision 1.10.2.1
retrieving revision 1.10.2.2
diff -u -d -r1.10.2.1 -r1.10.2.2
--- svc_broadband.pm 10 Mar 2007 00:21:10 -0000 1.10.2.1
+++ svc_broadband.pm 13 Feb 2008 23:49:00 -0000 1.10.2.2
@@ -114,6 +114,10 @@
my( $class, $string ) = @_;
if ( $string =~ /^(\d{1,3}\.){3}\d{1,3}$/ ) {
$class->search_sql_field('ip_addr', $string );
+ }elsif ( $string =~ /^([a-fA-F0-9]{12})$/ ) {
+ $class->search_sql_field('mac_addr', uc($string));
+ }elsif ( $string =~ /^(([a-fA-F0-9]{1,2}:){5}([a-fA-F0-9]{1,2}))$/ ) {
+ $class->search_sql_field('mac_addr', uc("$2$3$4$5$6$7") );
} else {
'1 = 0'; #false
}
More information about the freeside-commits
mailing list