-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows problems #33
Comments
Is there an exact error you are getting? Are there any special steps you did that we would need to follow t recreate? Thanks. |
No error is thrown, but all header fields are ignored in a .md-file with CRLF line endings. |
Could you please let me know what server setup you have? Is it a WAMP stack? Just would like to try to replicate as closely as possible. Cheers. |
It's a WNMP stack with Nginx 1.7.4 and PHP 5.5.15 (Non Thread Safe + FastCGI) https://github.com/wnmp/wnmp |
Well I think it's probably an Nginx issue. I just tried with EasyPHP and it works fine when I edit a file in Notepad++. We did some preliminary testing with Nginx, hence the configuration file we've included with Grav. However, this is not thoroughly tested as we don't use it ourselves for development. Throw windows in to that mix too, and that's very uncharted territory for us. Of course we want to ensure Grav runs on as many platforms and configurations as possible, so any help here identifying what is the cause and how to fix it would be helpful. Unfortunately we're all mac users, and windows is pretty foreign to us. Took me 30 mins to even get EasyPHP to run! Should be easy right? but i couldn't even find where the files were, and then i had to restart the VM to get it to run at all :( |
No sweat, just wanted to let you know :) |
I'm going to reopen this one for now in case if someone else has some insights to the issue. |
Got it. So replacing Sorry, too dumb to make a pull request... |
Ok great find! Pull requests are simple, just browse to the source of the page: Click the edit icon and make your change, then comment and commit and a pull request is automatically made. |
Thanks a lot, pull request created. |
OK thanks, tested and works fine in our test setups. Merged 👍 |
Extracting the header from files with windows line endings (CRLF) fails.
It would be great if the respective functions were less strict, e.g. by removing all CR characters before parsing.
The text was updated successfully, but these errors were encountered: