Skip to content

Commit

Permalink
escaping url for tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Sep 17, 2021
1 parent a9b98d4 commit 2b4f3ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion owa-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ function getTrackerSnippetTemplate() {
$tag .= '<script type="text/javascript">' . "\n";
$tag .= "var owa_cmds = owa_cmds || []; \n";

$base_url = $this->getOption('owaEndpoint');
$base_url = esc_url( $this->getOption('owaEndpoint') );

$tag .= "var owa_baseUrl = '$base_url'; \n";

$tag .= "%s";
Expand Down

0 comments on commit 2b4f3ac

Please sign in to comment.