Small fix on short url generation

This commit is contained in:
Luc Didry
2014-06-03 21:30:58 +02:00
parent 510bfb3eed
commit b450ea7607
+1 -1
View File
@@ -107,7 +107,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');
} while (LutimModel::Lutim->count('WHERE short = ?', $short) || $short eq 'about' || $short eq 'stats' || $short eq 'd');
LutimModel::Lutim->create(
short => $short,