aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-25 22:55:07 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-25 22:55:07 +0100
commit3ea84d7eab20947ac52dc7e6c205252f0a76c047 (patch)
tree9cb7c69c30fd108deb2f700fe5a88d24dba3d194 /mod/events.php
parenta80c45940e14d75ef91b39e62d8aab9e2efc01cc (diff)
downloadvolse-hubzilla-3ea84d7eab20947ac52dc7e6c205252f0a76c047.tar.gz
volse-hubzilla-3ea84d7eab20947ac52dc7e6c205252f0a76c047.tar.bz2
volse-hubzilla-3ea84d7eab20947ac52dc7e6c205252f0a76c047.zip
some basic event styling
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/events.php b/mod/events.php
index 0366c9b02..64d7dfb93 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -91,7 +91,11 @@ function events_post(&$a) {
linkify_tags($a, $location, local_channel());
$action = ($event_hash == '') ? 'new' : "event/" . $event_hash;
- $onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish&type=$type";
+
+ //fixme: this url gives a wsod if there is a linebreak detected in one of the variables ($desc or $location)
+ //$onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish&type=$type";
+ $onerror_url = $a->get_baseurl() . "/events";
+
if(strcmp($finish,$start) < 0 && !$nofinish) {
notice( t('Event can not end before it has started.') . EOL);
if(intval($_REQUEST['preview'])) {