When viewing the members that have a given city assigned in the
'cities' settings page, the list breaks when a member has quotes
in its name. This has now been fixed.
}
// $citiesWithMembersJSON = htmlspecialchars(json_encode($citiesWithMembers), ENT_QUOTES, 'UTF-8');
$citiesWithMembersJSON = json_encode( $citiesWithMembers );
- $citiesWithMembersJSON = str_replace( "'", "\'", $citiesWithMembersJSON );
+ $citiesWithMembersJSON = addSlashes( $citiesWithMembersJSON );
// Compile template data