force site_url to be lowercase when stored. Otherwise rating hubs on postgres could get real messy.

This commit is contained in:
friendica
2015-02-15 23:45:22 -08:00
parent 8774089005
commit 1c4b919980
5 changed files with 22 additions and 8 deletions

View File

@@ -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);