Skip to content

Commit

Permalink
use html entity decode to convert & to &
Browse files Browse the repository at this point in the history
  • Loading branch information
jdvideo committed Dec 22, 2023
1 parent 80ff36e commit 3312598
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions srs-player/public/class-srs-player-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public function embed_player_handler($atts = [], $content = null, $tag = '') {
if (empty($q['url']) && empty($q['src'])) {
return __('Please specify the url of stream', 'srs-player');
}
// convert & to &.
$q['url'] = html_entity_decode($q['url']);

$url = $q['url'];
if (empty($url)) $url = $q['src'];
$id = 'srs-player-' . $this->random_str(32);
Expand Down Expand Up @@ -91,6 +94,9 @@ public function embed_publisher_handler($atts = [], $content = null, $tag = '')
if (empty($q['url']) && empty($q['src'])) {
return __('Please specify the url of stream', 'srs-publisher');
}
// convert & to &.
$q['url'] = html_entity_decode($q['url']);

$url = $q['url'];
if (empty($url)) $url = $q['src'];
$id = 'srs-publisher-' . $this->random_str(32);
Expand Down

0 comments on commit 3312598

Please sign in to comment.