Skip to content

Instantly share code, notes, and snippets.

@stas
Created September 22, 2009 19:35
Show Gist options
  • Save stas/191346 to your computer and use it in GitHub Desktop.
Save stas/191346 to your computer and use it in GitHub Desktop.
Index: index.php
===================================================================
--- index.php (revision 147359)
+++ index.php (working copy)
@@ -137,7 +137,7 @@
$lm_org = $wpdb->escape($_POST['lm_org']);
$lm_email = $wpdb->escape($_POST['lm_email']);
$lm_web = $wpdb->escape(apply_filters("the_title",$_POST['lm_web']));
- $lm_dsc = $wpdb->escape(apply_filters("comment_status_pre ",$_POST['lm_dsc']));
+ $lm_dsc = $wpdb->escape(apply_filters("comment_status_pre ",nl2br($_POST['lm_dsc'])));
$lm_point = $wpdb->escape(strtok($_POST['lm_point'],"()"));
$wpdb->query("
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment