Skip to content

Commit

Permalink
Closes #5: Fixing single quote (non)escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
mapkyca committed Mar 16, 2020
1 parent 111e905 commit a107dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/entity/Status/edit.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

<p>
<small><a id="inreplyto-add" href="#"
onclick="$('#inreplyto').append('<span><input required type=&quot;url&quot; name=&quot;inreplyto[]&quot; value=&quot;&quot; placeholder=&quot;<?php echo \Idno\Core\Idno::site()->language()->esc_('Add the URL that you\'re replying to'); ?>&quot; class=&quot;form-control&quot; onchange=&quot;adjust_content(this.value)&quot; /> <small><a href=&quot;#&quot; onclick=&quot;$(this).parent().parent().remove(); return false;&quot;><icon class=&quot;fa fa-times&quot;></icon> <?php echo \Idno\Core\Idno::site()->language()->esc_('Remove URL'); ?></a></small><br /></span>'); return false;"><i class="fa fa-reply"></i>
onclick="$('#inreplyto').append('<span><input required type=&quot;url&quot; name=&quot;inreplyto[]&quot; value=&quot;&quot; placeholder=&quot;<?php echo addslashes(\Idno\Core\Idno::site()->language()->_('Add the URL that you\'re replying to')); ?>&quot; class=&quot;form-control&quot; onchange=&quot;adjust_content(this.value)&quot; /> <small><a href=&quot;#&quot; onclick=&quot;$(this).parent().parent().remove(); return false;&quot;><icon class=&quot;fa fa-times&quot;></icon> <?php echo \Idno\Core\Idno::site()->language()->esc_('Remove URL'); ?></a></small><br /></span>'); return false;"><i class="fa fa-reply"></i>
<?php echo \Idno\Core\Idno::site()->language()->_('Reply to a site'); ?></a></small>
</p>

Expand Down Expand Up @@ -163,7 +163,7 @@ function count_chars() {

// Make in reply to a little less painful
$("#inreplyto-add").on('dragenter', function(e) {
var placeholder = '<?php echo \Idno\Core\Idno::site()->language()->esc_('Add the URL that you\'re replying to'); ?>';
var placeholder = '<?php echo addslashes(\Idno\Core\Idno::site()->language()->_('Add the URL that you\'re replying to')); ?>';
e.stopPropagation();
e.preventDefault();
$('#inreplyto').append('<span><input required type="url" name="inreplyto[]" value="" placeholder="' + placeholder + '" class="form-control" onchange="adjust_content(this.value)" /> <small><a href="#" onclick="$(this).parent().parent().remove(); return false;"><icon class="fa fa-times"></icon> <?php echo \Idno\Core\Idno::site()->language()->esc_('Remove URL'); ?></a></small><br /></span>'); return false;
Expand Down

0 comments on commit a107dbe

Please sign in to comment.