aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-29 23:58:14 -0800
committerfriendica <info@friendica.com>2014-12-29 23:58:14 -0800
commit2f650b74d35335815c48537cd03c81cc92a3c4f8 (patch)
treed209405166df963a8cca626fb53dc69a9e0b3872 /include
parent5cfe0511391e391d46b91efaa8df3501d498fd21 (diff)
parent9b2c71a5dcdeb7ef7a1b1e09ad906bc750b1d0d6 (diff)
downloadvolse-hubzilla-2f650b74d35335815c48537cd03c81cc92a3c4f8.tar.gz
volse-hubzilla-2f650b74d35335815c48537cd03c81cc92a3c4f8.tar.bz2
volse-hubzilla-2f650b74d35335815c48537cd03c81cc92a3c4f8.zip
Merge branch 'master' into trinidad
Diffstat (limited to 'include')
-rw-r--r--include/auth.php2
-rw-r--r--include/bbcode.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/auth.php b/include/auth.php
index 545fbe8c9..c4bbaf546 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -283,7 +283,7 @@ else {
@file_put_contents($authlog, datetime_convert() . ':' . session_id() . ' ' . $error . "\n", FILE_APPEND);
notice( t('Login failed.') . EOL );
- goaway(z_root());
+ goaway(z_root() . '/login');
}
// If the user specified to remember the authentication, then change the cookie
diff --git a/include/bbcode.php b/include/bbcode.php
index 9445eb007..ab56bda61 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -22,7 +22,7 @@ function tryzrlaudio($match) {
$zrl = is_matrix_url($link);
if($zrl)
$link = zid($link);
- return '<audio src="' . $link . '" controls="controls" ><a href="' . $link . '">' . $link . '</a></audio>';
+ return '<audio src="' . str_replace(' ','%20',$link) . '" controls="controls" ><a href="' . str_replace(' ','%20',$link) . '">' . $link . '</a></audio>';
}
function tryzrlvideo($match) {
@@ -30,7 +30,7 @@ function tryzrlvideo($match) {
$zrl = is_matrix_url($link);
if($zrl)
$link = zid($link);
- return '<video controls="controls" src="' . $link . '" style="width:100%; max-width:' . get_app()->videowidth . 'px"><a href="' . $link . '">' . $link . '</a></video>';
+ return '<video controls="controls" src="' . str_replace(' ','%20',$link) . '" style="width:100%; max-width:' . get_app()->videowidth . 'px"><a href="' . str_replace(' ','%20',$link) . '">' . $link . '</a></video>';
}