From 8a489b47624a7d5dc36b2e5b5ac820adbe52841c Mon Sep 17 00:00:00 2001
From: friendica <info@friendica.com>
Date: Sun, 4 Dec 2011 03:01:04 -0800
Subject: [PATCH] unix style homedir

---
 boot.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/boot.php b/boot.php
index de4bfe0909..63dea8e6fb 100644
--- 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);
 
 		/**
 		 *