Normalize expected format for event fields summary, desc and location
- Remove unnecessary HTML escaping on event submit - Add HTML escaping on event display - Add HTML to BBCode conversion for received ActivityPub events
This commit is contained in:
parent
c9c9fc3a96
commit
a8b0aa8c8d
3 changed files with 27 additions and 26 deletions
|
@ -97,9 +97,9 @@ function events_post(App $a)
|
|||
// and we'll waste a bunch of time responding to it. Time that
|
||||
// could've been spent doing something else.
|
||||
|
||||
$summary = Strings::escapeHtml(trim(defaults($_POST, 'summary', '')));
|
||||
$desc = Strings::escapeHtml(trim(defaults($_POST, 'desc', '')));
|
||||
$location = Strings::escapeHtml(trim(defaults($_POST, 'location', '')));
|
||||
$summary = trim(defaults($_POST, 'summary' , ''));
|
||||
$desc = trim(defaults($_POST, 'desc' , ''));
|
||||
$location = trim(defaults($_POST, 'location', ''));
|
||||
$type = 'event';
|
||||
|
||||
$params = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue