aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-15 23:45:22 -0800
committerfriendica <info@friendica.com>2015-02-15 23:45:22 -0800
commit1c4b9199809581504ee66212f3bb434fd9773aff (patch)
tree30ab8105e3b42c4b089b04a89b69a4ed7192eba7 /include/zot.php
parent8774089005501a6429eb9a99a73de504598a24c3 (diff)
downloadvolse-hubzilla-1c4b9199809581504ee66212f3bb434fd9773aff.tar.gz
volse-hubzilla-1c4b9199809581504ee66212f3bb434fd9773aff.tar.bz2
volse-hubzilla-1c4b9199809581504ee66212f3bb434fd9773aff.zip
force site_url to be lowercase when stored. Otherwise rating hubs on postgres could get real messy.
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index da6ca16c3..926764635 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -2442,7 +2442,7 @@ function import_site($arr,$pubkey) {
}
$directory_url = htmlspecialchars($arr['directory_url'],ENT_COMPAT,'UTF-8',false);
- $url = htmlspecialchars($arr['url'],ENT_COMPAT,'UTF-8',false);
+ $url = htmlspecialchars(strtolower($arr['url']),ENT_COMPAT,'UTF-8',false);
$sellpage = htmlspecialchars($arr['sellpage'],ENT_COMPAT,'UTF-8',false);
$site_location = htmlspecialchars($arr['location'],ENT_COMPAT,'UTF-8',false);
$site_realm = htmlspecialchars($arr['realm'],ENT_COMPAT,'UTF-8',false);