aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2015-04-01 11:56:42 +0200
committernodiscc <nodiscc@gmail.com>2015-04-01 11:56:42 +0200
commit82cfe1fe9649880e9653c61bdc51455af32e7bcd (patch)
tree50d69deeb8529ed2ed321fde653183967d63ba64 /index.php
parenta5752e776c9ee5ee5a711a76e8c8066ee88f7192 (diff)
parentb47f515ad3a58b791dd03008b11f52081f6f9d88 (diff)
downloadShaarli-82cfe1fe9649880e9653c61bdc51455af32e7bcd.tar.gz
Shaarli-82cfe1fe9649880e9653c61bdc51455af32e7bcd.tar.zst
Shaarli-82cfe1fe9649880e9653c61bdc51455af32e7bcd.zip
Merge pull request #183 from pikzen/fix-absolute-urls
Display notes as absolute URLs (for real)
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 }