Permalink
Browse files

MDL-18085 "custom user profile fields : in a list box field if one of…

… the admin chosen values has an apostrophe in it it breaks the query to update / save the value"
  • Loading branch information...
1 parent 82e1b60 commit 4d5025a77689a9ddf6030b50836e7c906a7c78a5 jamiesensei committed Jan 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 user/profile/field/menu/field.class.php
@@ -58,7 +58,7 @@ function edit_field_set_default(&$mform) {
* @param integer the key returned from the select input in the form
*/
function edit_save_data_preprocess($key) {
- return isset($this->options[$key]) ? $this->options[$key] : NULL;
+ return isset($this->options[$key]) ? addslashes($this->options[$key]) : NULL;
}
/**

0 comments on commit 4d5025a

Please sign in to comment.