MyShaarli/application
Ganesh Kandu 42a72c02fa
Replaced PHP_EOL to "\n"
i was getting error 

```
An error occurred while parsing JSON configuration file (data/config.json.php): error code #4
➜ Syntax error
Please check your JSON syntax (without PHP comment tags) using a JSON lint tool such as jsonlint.com.
```
after debug i found 
```php
        $data = str_replace(self::getPhpHeaders(), '', $data);
        $data = str_replace(self::getPhpSuffix(), '', $data);
```
doesn't removing php header and php suffix

cause of this issue was PHP_EOL represents the endline character for the current system. if my  ```config.json.php```  was encoded with unix ( LF ) and php running on windows windows encoding ( CR LF ) is not same as unix encoding ( LF ) so ```str_replace``` doesn't replace strin  then it causes issue.
2020-10-27 17:42:35 +05:30
..
api Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
bookmark Asynchronous retrieval of bookmark's thumbnails 2020-10-20 10:15:18 +02:00
config Replaced PHP_EOL to "\n" 2020-10-27 17:42:35 +05:30
container Use PSR-3 logger for login attempts 2020-10-20 11:47:07 +02:00
exceptions namespacing: \Shaarli\Exceptions\IOException 2019-01-12 22:47:48 +01:00
feed Add strict types for bookmarks management 2020-10-13 13:50:11 +02:00
formatter Feature: highlight fulltext search results 2020-10-16 20:31:12 +02:00
front Merge pull request #1601 from ArthurHoaro/feature/psr3 2020-10-24 11:37:29 +02:00
http Improve metadata retrieval (performances and accuracy) 2020-10-15 11:36:56 +02:00
legacy Merge pull request #1541 from ArthurHoaro/fix/legacy-login-encoding 2020-09-03 18:54:45 +02:00
netscape Better support for notes permalink 2020-07-28 20:46:11 +02:00
plugin Inject ROOT_PATH in plugin instead of regenerating it everywhere 2020-10-16 13:06:06 +02:00
render Use PSR-3 logger for login attempts 2020-10-20 11:47:07 +02:00
security Use PSR-3 logger for login attempts 2020-10-20 11:47:07 +02:00
updater Fix basePath in unit tests reference DB 2020-07-28 22:34:45 +02:00
.htaccess .htaccess files: support Apache 2.4+ syntax 2016-11-08 11:38:14 +01:00
ApplicationUtils.php Run Unit Tests against PHP 7.4 2020-01-17 18:34:37 +01:00
FileUtils.php namespacing: \Shaarli\FileUtils 2019-01-12 22:47:48 +01:00
History.php Apply the new system (Bookmark + Service) to the whole code base 2020-01-18 09:55:59 +01:00
Languages.php Japanese translation: add language to admin configuration page 2020-08-27 15:00:48 +02:00
Thumbnailer.php Process thumbnail synchronize page through Slim controllers 2020-07-23 21:19:21 +02:00
TimeZone.php Change timezone data structure send to the templates 2017-04-03 19:24:55 +02:00
Utils.php Merge pull request #1601 from ArthurHoaro/feature/psr3 2020-10-24 11:37:29 +02:00