From 0a318dc4d43d1e433a25ea75ce7e31b36bd342ce Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 6 Jun 2016 22:09:39 +0200 Subject: [PATCH] Avoid having "gallery" as shortened URL --- lib/Lutim.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lutim.pm b/lib/Lutim.pm index 0cf8796..308fe2f 100644 --- a/lib/Lutim.pm +++ b/lib/Lutim.pm @@ -106,7 +106,7 @@ sub startup { my $short; do { $short= $c->shortener($c->config->{length}); - } while (LutimModel::Lutim->count('WHERE short = ?', $short) || $short eq 'about' || $short eq 'stats' || $short eq 'd' || $short eq 'm'); + } while (LutimModel::Lutim->count('WHERE short = ?', $short) || $short eq 'about' || $short eq 'stats' || $short eq 'd' || $short eq 'm' || $short eq 'gallery'); LutimModel::Lutim->create( short => $short,