aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorFlorian Eula <mr.pikzen@gmail.com>2015-04-01 11:47:04 +0200
committerFlorian Eula <mr.pikzen@gmail.com>2015-04-01 11:47:04 +0200
commitb47f515ad3a58b791dd03008b11f52081f6f9d88 (patch)
tree50d69deeb8529ed2ed321fde653183967d63ba64 /index.php
parenta5752e776c9ee5ee5a711a76e8c8066ee88f7192 (diff)
downloadShaarli-b47f515ad3a58b791dd03008b11f52081f6f9d88.tar.gz
Shaarli-b47f515ad3a58b791dd03008b11f52081f6f9d88.tar.zst
Shaarli-b47f515ad3a58b791dd03008b11f52081f6f9d88.zip
Display notes as absolute URLs
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 9ab70f6c..765416ec 100644
--- a/index.php
+++ b/index.php
@@ -1938,6 +1938,12 @@ function buildLinkList($PAGE,$LINKSDB)
1938 $taglist = explode(' ',$link['tags']); 1938 $taglist = explode(' ',$link['tags']);
1939 uasort($taglist, 'strcasecmp'); 1939 uasort($taglist, 'strcasecmp');
1940 $link['taglist']=$taglist; 1940 $link['taglist']=$taglist;
1941
1942 if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this.
1943 strlen($link["url"]) === 7) {
1944 $link["url"] = indexUrl() . $link["url"];
1945 }
1946
1941 $linkDisp[$keys[$i]] = $link; 1947 $linkDisp[$keys[$i]] = $link;
1942 $i++; 1948 $i++;
1943 } 1949 }