Advertisement
estepix

wpnewsman-character-corruption

Jun 10th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.29 KB | None | 0 0
  1. diff --git a/wp-content/plugins/wpnewsman-newsletters/class.form.php b/wp-content/plugins/wpnewsman-newsletters/class.form.php
  2. index 5574868..440c5a4 100644
  3. --- a/wp-content/plugins/wpnewsman-newsletters/class.form.php
  4. +++ b/wp-content/plugins/wpnewsman-newsletters/class.form.php
  5. @@ -81,7 +81,7 @@ class newsmanForm {
  6.  
  7.         $lblSt = $this->useInlineLabels ? 'style="display: none;"' : '';
  8.  
  9. -       $lbl = '<label class="newsman-form-item-label" '.$lblSt.' >'.htmlentities($item['label']).'</label>';
  10. +       $lbl = '<label class="newsman-form-item-label" '.$lblSt.' >'.htmlspecialchars($item['label']).'</label>';
  11.         $ph = $this->useInlineLabels ? 'placeholder="'.htmlspecialchars($item['label']).'"' : '';
  12.  
  13.         $elId = $this->getElId();
  14. @@ -221,7 +221,7 @@ class newsmanForm {
  15.             $btnClasses .= ' newsman-button-'.$style;
  16.             $btnClasses .= ' newsman-button-'.$color;  
  17.  
  18. -           $btn = '<button type="submit" class="'.$btnClasses.'" name="nwsmn-subscribe" value="1">'.htmlentities($item['value']).'</button>';
  19. +           $btn = '<button type="submit" class="'.$btnClasses.'" name="nwsmn-subscribe" value="1">'.htmlspecialchars($item['value']).'</button>';
  20.  
  21.         } else {
  22.             $btn = '<input type="submit" class="newsman-button-default button btn" name="nwsmn-subscribe" value="'.htmlspecialchars($item['value']).'">';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement