From 58af0b489e4b01f1dc5c3e5a18ecccce5152195e Mon Sep 17 00:00:00 2001
From: Ghislain Loas <ghislo@sandbox.pergame.net>
Date: Tue, 6 Oct 2015 10:20:55 +0200
Subject: [PATCH] hotline #29412 fix first char test

---
 library/Class/Article.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Class/Article.php b/library/Class/Article.php
index cd863632543..0628e6b263e 100644
--- a/library/Class/Article.php
+++ b/library/Class/Article.php
@@ -990,7 +990,7 @@ class Class_Article extends Storm_Model_Abstract {
       return $url;
 
     $path = str_replace(Class_Url::baseUrl(), '', $url);
-    if(substr($path, 0, 0) == '/')
+    if(strpos($path, '/') === 0)
       $path = '.' . $path;
 
     if($this->getFileWriter()->fileExists($path))
-- 
GitLab