diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-06-14 21:25:04 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-06-14 21:25:04 +0000 |
| commit | 098d655217892d417e1e9a32c96572b77f2e1edc (patch) | |
| tree | 54fbc83b0efdde62cf8fc481f44726fc80e85907 /library | |
| parent | 56413ace074c4937037dcc6c3ca38583c4b31183 (diff) | |
| download | webtrees-098d655217892d417e1e9a32c96572b77f2e1edc.tar.gz webtrees-098d655217892d417e1e9a32c96572b77f2e1edc.tar.bz2 webtrees-098d655217892d417e1e9a32c96572b77f2e1edc.zip | |
#1100600 - HTML code in Add More Fields Advanced Search
Diffstat (limited to 'library')
| -rw-r--r-- | library/WT/Controller/AdvancedSearch.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/WT/Controller/AdvancedSearch.php b/library/WT/Controller/AdvancedSearch.php index a3913e393b..cba844cd74 100644 --- a/library/WT/Controller/AdvancedSearch.php +++ b/library/WT/Controller/AdvancedSearch.php @@ -117,7 +117,8 @@ class WT_Controller_AdvancedSearch extends WT_Controller_Search { '_MILI', ); // Allow (some of) the user-specified fields to be selected - foreach (explode(',', get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_ADD')) as $fact) { + preg_match_all('/(' . WT_REGEX_TAG . ')/', get_gedcom_setting(WT_GED_ID, 'INDI_FACTS_ADD'), $facts); + foreach ($facts[1] as $fact) { if ( $fact!='BIRT' && $fact!='DEAT' && |
