]> git.mxchange.org Git - friendica.git/commitdiff
unix style homedir
authorfriendica <info@friendica.com>
Sun, 4 Dec 2011 11:01:04 +0000 (03:01 -0800)
committerfriendica <info@friendica.com>
Sun, 4 Dec 2011 11:01:04 +0000 (03:01 -0800)
boot.php

index de4bfe0909b7494b1ba4e9aa32cf2a2b072de18d..63dea8e6fb32f87ed9b174d98eaa841e1695b7ff 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -305,7 +305,10 @@ class App {
                if(x($_GET,'q'))
                        $this->cmd = trim($_GET['q'],'/\\');
 
+               // unix style "homedir"
 
+               if(substr($this->cmd,0,1) === '~')
+                       $this->cmd = 'profile/' . substr($this->cmd,1);
 
                /**
                 *