aboutsummaryrefslogtreecommitdiff
path: root/zzcxz.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'zzcxz.cgi')
-rwxr-xr-xzzcxz.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/zzcxz.cgi b/zzcxz.cgi
index 704be9d..0c4b290 100755
--- a/zzcxz.cgi
+++ b/zzcxz.cgi
@@ -271,7 +271,7 @@ local page_template = template [[
$actions
</ul>
]]
-map["^/g/(%w%w%w%w%w)/?$"] = function(p)
+map["^/g/(%w%w%w%w%w)$"] = function(p)
local page = load_page(p)
if not page then return not_found() end
local _, directives = convert_markup(page.content)
@@ -320,6 +320,10 @@ map["^/g/(%w%w%w%w%w)/?$"] = function(p)
end
end
+map["^/g/(%w%w%w%w%w)/$"] = function(p)
+ return redirect('/g/'..p)
+end
+
local edit_template = template [[
$content
<hr id="what"/>