This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enventor.

View the commit online.

commit 4e6fb8103073108de11ed7beee07c49b099e0ebf
Author: Thanatermesis <[email protected]>
AuthorDate: Mon Feb 23 15:51:25 2026 -0500

    fix: Retrieve plain text for build path settings to prevent corruption
    
    I have identified a critical bug in build_setting_config_set. The function elm_object_text_get() returns the HTML-formatted markup (UTF-8) of the entry's content. Since these
    entries represent file system paths, passing markup containing tags or entities to the configuration setters will result in corrupted paths. I have replaced these calls with
    elm_entry_entry_get(), which retrieves the plain text.
---
 src/bin/build_setting.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/bin/build_setting.c b/src/bin/build_setting.c
index 650db00..9bfe666 100644
--- a/src/bin/build_setting.c
+++ b/src/bin/build_setting.c
@@ -108,11 +108,13 @@ build_setting_config_set(build_setting_data *bsd)
 {
    if (!bsd) return;
 
-   config_input_path_set(elm_object_text_get(bsd->main_edc_entry));
-   config_img_path_set(elm_object_text_get(bsd->img_path_entry));
-   config_snd_path_set(elm_object_text_get(bsd->snd_path_entry));
-   config_fnt_path_set(elm_object_text_get(bsd->fnt_path_entry));
-   config_dat_path_set(elm_object_text_get(bsd->dat_path_entry));
+   /* Use elm_entry_entry_get to get the raw text instead of elm_object_text_get
+      which returns formatted markup, potentially corrupting file paths. */
+   config_input_path_set(elm_entry_entry_get(bsd->main_edc_entry));
+   config_img_path_set(elm_entry_entry_get(bsd->img_path_entry));
+   config_snd_path_set(elm_entry_entry_get(bsd->snd_path_entry));
+   config_fnt_path_set(elm_entry_entry_get(bsd->fnt_path_entry));
+   config_dat_path_set(elm_entry_entry_get(bsd->dat_path_entry));
 }
 
 void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to