Skip to content
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

fix(pbrt): escape string field when it's a file path #466

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

7sDream
Copy link
Contributor

@7sDream 7sDream commented Nov 29, 2024

This is an additional finding in the process of researching the cause of issue #465.

File paths in Windows contain backslashes (\), which are used for string escaping in pbrt. This can cause pbrt commands to fail when run on Windows.

I have added a string escape function and applied it in places where I am certain the context is a file path, but it's possible that I haven't covered all instances.

If there are any locations I've missed, please remind me. I'm not very familiar with this codebase yet.

@howetuft
Copy link
Collaborator

Hello,
Thank you very much! I merge...

@howetuft howetuft merged commit 6dabe49 into FreeCAD:master Nov 29, 2024
1 check passed
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.

2 participants