aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpafcu <pafcu@iki.fi>2014-12-28 12:30:20 +0200
committerpafcu <pafcu@iki.fi>2014-12-28 12:30:20 +0200
commit0b79445b575fa303e464aceb092a2653dd67a6ad (patch)
tree1345d4232cde2d3cbc5c0bfd329bce70bc751cbb /include
parent50943f439cb755c052507b8b459740a0ded193c2 (diff)
parentfffc7dffbac6a335afb175525313069e0b21a388 (diff)
downloadvolse-hubzilla-0b79445b575fa303e464aceb092a2653dd67a6ad.tar.gz
volse-hubzilla-0b79445b575fa303e464aceb092a2653dd67a6ad.tar.bz2
volse-hubzilla-0b79445b575fa303e464aceb092a2653dd67a6ad.zip
Merge pull request #779 from pafcu/audio
Make spaces work in [audio] and [video]. Fixes #774
Diffstat (limited to 'include')
-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..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>';
}