Skip to content
Browse files

Whoops…

  • Loading branch information...
1 parent 5700537 commit 7632b3cbf418895ec73ccd7688951d5eef6c421d @xythobuz committed Mar 11, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 githubhook.php
View
10 githubhook.php
@@ -144,11 +144,11 @@
$sql = 'INSERT INTO
commits(name, mail, message, url, repo)
VALUES
- ("'.$name.'",
- "'.$from.'",
- "'.$msg.'",
- "'.$url.'",
- "'.$repo.'")';
+ ("'.mysql_real_escape_string($name).'",
+ "'.mysql_real_escape_string($from).'",
+ "'.mysql_real_escape_string($msg).'",
+ "'.mysql_real_escape_string($url).'",
+ "'.mysql_real_escape_string($repo).'")';
$result = mysql_query($sql);
}
sendEmail($to, $from, $msg, $name, $url, $repo);

0 comments on commit 7632b3c

Please sign in to comment.
Something went wrong with that request. Please try again.