aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/search/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/search/index.php b/mod/search/index.php
index d62e3be72..806c2a0d9 100644
--- a/mod/search/index.php
+++ b/mod/search/index.php
@@ -88,14 +88,14 @@ foreach ($types as $type => $subtypes) {
foreach ($custom_types as $type) {
$label = "search_types:$type";
- $data = http_build_query(array(
+ $data = htmlspecialchars(http_build_query(array(
'q' => urlencode($query),
'entity_subtype' => $entity_subtype,
'entity_type' => urlencode($entity_type),
'owner_guid' => urlencode($owner_guid),
'search_type' => $type,
'friends' => $friends
- ));
+ )));
$url = "{$CONFIG->wwwroot}pg/search/?$data";