aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-04-14 15:12:39 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-04-14 15:12:39 -0400
commit1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e (patch)
tree32486e253628ab64fa466f34dfc0703d9ce8644c /boot.php
parent16f729912a00cc92d0473f3d326080531a2fb393 (diff)
parent6591b292a1e22e3eaec41af0a61a6911e9847098 (diff)
downloadvolse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.tar.gz
volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.tar.bz2
volse-hubzilla-1dd22be4d2fe997d9bde552f8d8a25ba12c67e7e.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: bogus empty list element in dfrn_request page when emailnet not enabled zrl on random profile zrl hook bug #372 - category feeds pass zrl's to/through global directory * master:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 5ba3b1b4a..0bd201a25 100644
--- a/boot.php
+++ b/boot.php
@@ -1494,11 +1494,13 @@ function get_my_url() {
return false;
}
-function zrl($s) {
+function zrl($s,$force = false) {
if(! strlen($s))
return $s;
- if(! strpos($s,'/profile/'))
+ if((! strpos($s,'/profile/')) && (! $force))
return $s;
+ if($force && substr($s,-1,1) !== '/')
+ $s = $s . '/';
$achar = strpos($s,'?') ? '&' : '?';
$mine = get_my_url();
if($mine and ! link_compare($mine,$s))