New line was not handled correctly
authorAlexander Ebert <ebert@woltlab.com>
Wed, 14 Mar 2012 15:12:41 +0000 (16:12 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 14 Mar 2012 15:12:41 +0000 (16:12 +0100)
wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php

index 8f63e1ab24a8525cef9c6de0f3c0a90df3edb36b..e2a82fb4b365e40e0aed8d78f27f37ba63b320f3 100644 (file)
@@ -8,7 +8,7 @@ class LessStylesheetsPage extends AbstractPage {
                        @header('Content-Type: text/css');
                        
                        foreach (explode("\n", LESS_FILES) as $stylesheet) {
-                               $path = WCF_DIR . 'style/'.$stylesheet.'.less';
+                               $path = WCF_DIR . 'style/'.trim($stylesheet).'.less';
                                if (!file_exists($path)) {
                                        echo "\n\nFILE NOT FOUND: ".$path."\n\n\n";
                                }