diff options
author | friendica <info@friendica.com> | 2013-09-30 19:28:59 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-30 19:28:59 -0700 |
commit | 2353e6d23f54902d3b2b9e3fd46f1baa6e803450 (patch) | |
tree | ce0bdcad8fd3faa694bda2dcdb3773843e67f4f1 | |
parent | e992cfeca9a80583b7cde12776fcfe279be02996 (diff) | |
download | volse-hubzilla-2353e6d23f54902d3b2b9e3fd46f1baa6e803450.tar.gz volse-hubzilla-2353e6d23f54902d3b2b9e3fd46f1baa6e803450.tar.bz2 volse-hubzilla-2353e6d23f54902d3b2b9e3fd46f1baa6e803450.zip |
small fixes
-rw-r--r-- | mod/dirsearch.php | 11 | ||||
-rw-r--r-- | mod/sources.php | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php index bb068a431..14307f274 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -45,7 +45,16 @@ function dirsearch_content(&$a) { // by default use a safe search $safe = ((x($_REQUEST,'safe')) ? intval($_REQUEST['safe']) : 1 ); - $sync = ((x($_REQUEST,'sync')) ? datetime_convert('UTC','UTC',$_REQUEST['sync']) : ''); + + if(array_key_exists('sync',$_REQUEST)) { + if($_REQUEST['sync']) + $sync = datetime_convert('UTC','UTC',$_REQUEST['sync']); + else + $sync = datetime_convert('UTC','UTC','2010-01-01 01:01:00'); + } + else + $sync = false; + $sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : ''); // TODO - a meta search which joins all of these things to one search string diff --git a/mod/sources.php b/mod/sources.php index 200a0cddf..125184d47 100644 --- a/mod/sources.php +++ b/mod/sources.php @@ -60,7 +60,7 @@ function sources_content(&$a) { ); if($r) { for($x = 0; $x < count($r); $x ++) { - $r[$x]['src_patt'] = htmlspecialchars($r[$x]['src_patt']); + $r[$x]['src_patt'] = htmlspecialchars($r[$x]['src_patt'], ENT_COMPAT,'UTF-8'); } } $o = replace_macros(get_markup_template('sources_list.tpl'), array( @@ -97,7 +97,7 @@ function sources_content(&$a) { return ''; } - $r[0]['src_patt'] = htmlspecialchars($r[0]['src_patt']); + $r[0]['src_patt'] = htmlspecialchars($r[0]['src_patt'], ENT_QUOTES,'UTF-8'); $o = replace_macros(get_markup_template('sources_edit.tpl'), array( '$title' => t('Edit Source'), |