-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
Ensure special characters are escaped in TSCN connections and editable hint #86417
Conversation
Originally was under #86348 , but I properly bricked my branch, this is a fresh build properly following guidelines, this is my first PR, and I tried using the web editor with Github, I didn't realize how bad that would make things, I couldn't properly rebase locally with the CLI nor VSCode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Please correct the commit message, it must start with a capital letter, see CONTRIBUTING.md.
fc0e276
to
84fd03e
Compare
All set! Thank you all for being patient. |
This comment was marked as outdated.
This comment was marked as outdated.
I confirm the bug and the fix seems correct. I skimmed through the file and found another occurrence that can have the same bug: diff --git a/scene/resources/resource_format_text.cpp b/scene/resources/resource_format_text.cpp
index 29cd9f648d..b75b0280a0 100644
--- a/scene/resources/resource_format_text.cpp
+++ b/scene/resources/resource_format_text.cpp
@@ -2319,7 +2319,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const Ref<Reso
if (i == 0) {
f->store_line("");
}
- f->store_line("[editable path=\"" + editable_instances[i].operator String() + "\"]");
+ f->store_line("[editable path=\"" + editable_instances[i].operator String().c_escape() + "\"]");
}
}
Could you add it to this commit? Overall I wonder if:
But both changes would be compat breaking, so this approach is the simplest solution for now. |
84fd03e
to
0a32c16
Compare
I amended the commit with the further fix I suggested, so it should be ready to merge. |
Thanks! And congrats for your first merged Godot contribution 🎉 |
Cherry-picked for 4.2.2. |
Fixes issue regarding #86347