-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Issue] Expression syntax error with single quote #9396
Comments
@ConnorWorrell can you test on dev version please ? |
Tested on master branch shows same error with same steps to reproduce.
|
Confirmed. You can however enter |
Hi! This issue hasn’t seen activity in a while. We automatically check each issue after 190 days without activity to keep the backlog tidy. If the issue is still relevant, let us know by adding a comment. Feel free to comment anytime to keep it open. Closed issues can always be reopened. Access additional FreeCAD resources:
|
This has been fixed.
|
Is there an existing issue for this?
Forums discussion
No response
Version
0.20 (Release)
Full version info
[code] OS: Arch Linux (sway) Word size of FreeCAD: 64-bit Version: 0.20.2.29603 (Git) Build type: Release Branch: makepkg Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8 Python 3.10.9, Qt 5.15.8, Coin 4.0.1, Vtk 9.2.6, OCC 7.6.3 Locale: English/United States (en_US) Installed mods: * dodo [/code]
Subproject(s) affected?
Core
Issue description
Expressions using single quotes throw error when clicking OK.
Steps to reproduce:
<class 'SyntaxError'>: ('unterminated string literal (detected at line 1)', ('<string>', 1, 75, "App.getDocument('Unnamed').Sketch.setExpression('.Placement.Base.x', u'1 '')", 1, 75))
It appears these single quotes are not being properly escaped.
Potential for injection: 1') or print('jfdkls
Putting this here since this link seems dead:
https://github.com/FreeCAD/FreeCAD/security/advisories/new
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: