Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

wpnewsman-character-corruption

By: estepix on Jun 10th, 2013  |  syntax: Diff  |  size: 1.29 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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']).'">';