From: Tony Mack Date: Tue, 25 Feb 2014 15:13:31 +0000 (-0500) Subject: fix regex in pl_login_base() X-Git-Tag: sfa-3.1-3~14 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f2f0ba291039230dc85d8bff6ff6f6e843f14381;hp=6e75067e28084e907df5d4f7f50fbf1846284d96;p=sfa.git fix regex in pl_login_base() --- diff --git a/sfa/planetlab/plxrn.py b/sfa/planetlab/plxrn.py index c9fa5ca0..7d2c5bb3 100644 --- a/sfa/planetlab/plxrn.py +++ b/sfa/planetlab/plxrn.py @@ -99,7 +99,7 @@ class PlXrn (Xrn): # Fix up names of GENI Federates base = base.lower() - base = re.sub('\\\[^a-zA-Z0-9]', '', base) + base = re.sub('[\\\\]*[^a-zA-Z0-9]', '', base) if len(base) > 20: base = base[len(base)-20:]