aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2026-02-05 14:57:29 +1000
committeronefang2026-02-05 14:57:29 +1000
commit4ea37d5322431aa4d22dd8fe1148d89d757fdc39 (patch)
treebd0a7a0e29faf87811064c457eb34f1aff914182
parentOops. (diff)
downloadnotYetAnotherWiki-polygLua.zip
notYetAnotherWiki-polygLua.tar.gz
notYetAnotherWiki-polygLua.tar.bz2
notYetAnotherWiki-polygLua.tar.xz
Fix up external links maybe.polygLua
-rwxr-xr-xnotYetAnotherWiki.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua
index cc76969..4a26493 100755
--- a/notYetAnotherWiki.lua
+++ b/notYetAnotherWiki.lua
@@ -809,10 +809,10 @@ local lunaLinky = function(url, lab, tit) -- Fix up the links.
809 end 809 end
810 end 810 end
811 end 811 end
812 if (url:sub(-4) ~= '.png') and (url:sub(-5) ~= '.HTML') then url = url .. '.HTML' end
813 if not done then 812 if not done then
814 -- TODO - Should check if this came from DocuWiki in the first place, AND double check this is for img src. 813 -- TODO - Should check if this came from DocuWiki in the first place, AND double check this is for img src.
815 if url:sub(1, 1) == '/' then 814 if url:sub(1, 1) == '/' then
815 if (url:sub(-4) ~= '.png') and (url:sub(-5) ~= '.HTML') then url = url .. '.HTML' end
816 local p = url 816 local p = url
817 local cnt = 0 817 local cnt = 0
818 for j = 1, #p do 818 for j = 1, #p do