Skip to content

Fix view resolution on Windows#531

Merged
sebastienros merged 1 commit intomainfrom
sebros/path
Nov 30, 2022
Merged

Fix view resolution on Windows#531
sebastienros merged 1 commit intomainfrom
sebros/path

Conversation

@sebastienros
Copy link
Copy Markdown
Owner

Fixes #500

{
public class FluidViewEngine : IFluidViewEngine
{
private static readonly char[] PathSeparators = { '/', '\\' };
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know, but here I want to check both as the argument might contain something that is not even from the current OS. Assuming that on Unix the '\' is actually not an allowed character.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested, you can't create a folder with / in windows, but you can create one with \ on linux :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fluid View engine does not work with Windows-style paths corretly

2 participants