X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofiles.php;h=9e19caa0b0a4ff60e10cf8561a03233ce4ce6e0e;hb=c3cb3d75e593faa06e4050a016ef1893bd5a4a3a;hp=d74219501a0ce3501888994bf715e908320188af;hpb=c26463b65b4b98f9aca77781fd74a7fe99f73814;p=friendica.git diff --git a/mod/profiles.php b/mod/profiles.php index d74219501a..9e19caa0b0 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -68,7 +68,10 @@ function profiles_post(&$a) { if($with != strip_tags($orig[0]['with'])) { $prf = ''; $lookup = $with; - if((strpos($lookup,'@')) || (strpos($lookup,'http://'))) { + if(strpos($lookup,'@') === 0) + $lookup = substr($lookup,1); + $lookup = str_replace('_',' ', $lookup); + if(strpos($lookup,'@') || (strpos($lookup,'http://'))) { $newname = $lookup; $links = @lrdd($lookup); if(count($links)) { @@ -101,6 +104,8 @@ function profiles_post(&$a) { if($prf) { $with = str_replace($lookup,'' . $newname . '', $with); + if(strpos($with,'@') === 0) + $with = substr($with,1); } } else @@ -200,11 +205,9 @@ function profiles_post(&$a) { if($is_default) { // Update global directory in background - $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); $url = $_SESSION['my_url']; if($url && strlen(get_config('system','directory_submit_url'))) - //proc_close(proc_open("\"$php_path\" \"include/directory.php\" \"$url\" &", array(),$foo)); - proc_run($php_path,"include/directory.php","$url"); + proc_run('php',"include/directory.php","$url"); } } }