diff options
author | pafcu <pafcu@iki.fi> | 2014-12-28 12:30:20 +0200 |
---|---|---|
committer | pafcu <pafcu@iki.fi> | 2014-12-28 12:30:20 +0200 |
commit | 0b79445b575fa303e464aceb092a2653dd67a6ad (patch) | |
tree | 1345d4232cde2d3cbc5c0bfd329bce70bc751cbb /include | |
parent | 50943f439cb755c052507b8b459740a0ded193c2 (diff) | |
parent | fffc7dffbac6a335afb175525313069e0b21a388 (diff) | |
download | volse-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.php | 4 |
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>'; } |