aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-12-28 11:22:58 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-12-28 11:22:58 +0100
commitf08ee3bab9810ce4dd8386ef6a08baf15ee1aded (patch)
treedacc706cc49016b778330a6f8a93f4970c19eb65 /include/bbcode.php
parent0cb0c2b1bfe22cb0fa983361a2f74d6b0fe6a596 (diff)
downloadvolse-hubzilla-f08ee3bab9810ce4dd8386ef6a08baf15ee1aded.tar.gz
volse-hubzilla-f08ee3bab9810ce4dd8386ef6a08baf15ee1aded.tar.bz2
volse-hubzilla-f08ee3bab9810ce4dd8386ef6a08baf15ee1aded.zip
Make spaces work in [audio] and [video]. Fixes #774
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 9445eb007..dbb0187f8 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_replac(' ','%20',$link) . '" style="width:100%; max-width:' . get_app()->videowidth . 'px"><a href="' . str_replace(' ','%20',$link) . '">' . $link . '</a></video>';
}