aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/index.php b/index.php
index a970e29f..bb1debd3 100644
--- a/index.php
+++ b/index.php
@@ -1601,8 +1601,8 @@ function renderPage($conf, $pluginManager, $LINKSDB)
1601function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager) 1601function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager)
1602{ 1602{
1603 // Used in templates 1603 // Used in templates
1604 $searchtags = !empty($_GET['searchtags']) ? escape($_GET['searchtags']) : ''; 1604 $searchtags = !empty($_GET['searchtags']) ? escape(normalize_spaces($_GET['searchtags'])) : '';
1605 $searchterm = !empty($_GET['searchterm']) ? escape($_GET['searchterm']) : ''; 1605 $searchterm = !empty($_GET['searchterm']) ? escape(normalize_spaces($_GET['searchterm'])) : '';
1606 1606
1607 // Smallhash filter 1607 // Smallhash filter
1608 if (! empty($_SERVER['QUERY_STRING']) 1608 if (! empty($_SERVER['QUERY_STRING'])
@@ -1649,7 +1649,7 @@ function buildLinkList($PAGE,$LINKSDB, $conf, $pluginManager)
1649 } else { 1649 } else {
1650 $link['updated_timestamp'] = ''; 1650 $link['updated_timestamp'] = '';
1651 } 1651 }
1652 $taglist = explode(' ', $link['tags']); 1652 $taglist = preg_split('/\s+/', $link['tags'], -1, PREG_SPLIT_NO_EMPTY);
1653 uasort($taglist, 'strcasecmp'); 1653 uasort($taglist, 'strcasecmp');
1654 $link['taglist'] = $taglist; 1654 $link['taglist'] = $taglist;
1655 // Check for both signs of a note: starting with ? and 7 chars long. 1655 // Check for both signs of a note: starting with ? and 7 chars long.
@@ -1949,8 +1949,8 @@ function install($conf)
1949 $conf->set( 1949 $conf->set(
1950 'api.secret', 1950 'api.secret',
1951 generate_api_secret( 1951 generate_api_secret(
1952 $this->conf->get('credentials.login'), 1952 $conf->get('credentials.login'),
1953 $this->conf->get('credentials.salt') 1953 $conf->get('credentials.salt')
1954 ) 1954 )
1955 ); 1955 );
1956 try { 1956 try {