X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/c651a52a158ad0ab99ca837dc1f661e4d8be5ae7..aa4a9fd115357f8d8781220e1f1345df774d6893:/article.inc.php diff --git a/article.inc.php b/article.inc.php index 53102ba..dd3d5b2 100644 --- a/article.inc.php +++ b/article.inc.php @@ -22,7 +22,7 @@ class ArchiveArticle function __construct($path) { $this->page = preg_replace('{^\.(?:/|$)}', '', $path); - $this->link = preg_replace('{(?:/index)?\.html$}', '', $this->page); + $this->link = preg_replace('{(?:(?:/|^)index)?\.html$}', '', $this->page); $this->raw($this->page); }