summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-06-14 21:25:04 +0000
committerfisharebest <fisharebest@gmail.com>2013-06-14 21:25:04 +0000
commit098d655217892d417e1e9a32c96572b77f2e1edc (patch)
tree54fbc83b0efdde62cf8fc481f44726fc80e85907 /library
parent56413ace074c4937037dcc6c3ca38583c4b31183 (diff)
downloadwebtrees-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.php3
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' &&