]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
doc: update documentation (sync from wiki)
[github/shaarli/Shaarli.git] / index.php
index 7795a5974388e20b8a7f11b10ae5691950748fb7..3192029a82158becf5d386200939697494caaa87 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1943,6 +1943,12 @@ function buildLinkList($PAGE,$LINKSDB)
         $taglist = explode(' ',$link['tags']);
         uasort($taglist, 'strcasecmp');
         $link['taglist']=$taglist;
+
+        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.
+            strlen($link["url"]) === 7) {
+            $link["url"] = indexUrl() . $link["url"];
+        }
+        
         $linkDisp[$keys[$i]] = $link;
         $i++;
     }