- // To-Do: Better check for pumpio
- $pumpio = preg_replace("=https?://([^/]*).*/(\w*)=ism", "$2@$1", $profile);
- if ($pumpio != $profile)
- return($username." (".$pumpio.")");
+ // pumpio (http://host.name/user)
+ $rest = preg_replace("=https?://([\.\w]+)/([\.\w]+)(.*)=ism", "$3", $profile);
+ if ($rest == "") {
+ $pumpio = preg_replace("=https?://([\.\w]+)/([\.\w]+)(.*)=ism", "*$2@$1*", $profile);
+ if ($pumpio != $profile)
+ return($username." (".$pumpio.")");
+ }