-
Notifications
You must be signed in to change notification settings - Fork 14
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
radio_button-replace_blanks_with_a_default_value #203
base: master
Are you sure you want to change the base?
radio_button-replace_blanks_with_a_default_value #203
Conversation
@eikonos |
} | ||
// replace with default value | ||
foreach ($update_array as $entry_id) { | ||
$sql = "UPDATE `".$xoopsDB->prefix("formulize_".$formObject->getVar('form_handle')."` SET `".$element->getVar('ele_handle')."`='".$default_entry."' WHERE entry_id=".$entry_id); |
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.
Instead of using $default_entry directly in an SQL query, it should be formulize_db_escape($default_entry) instead, because user input might contain text that's not safe for SQL.
@eikonos I have applied the 3 mentioned changes. Please take another look. |
A very useful feature that should be merged in. Conflicts should be simple to deal with. |
See also: #139 |
This should work now