New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harden Gdn_Database against mysql injection attacks. #2272

merged 1 commit into from Nov 20, 2014
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Diff settings


Just for now

@@ -49,6 +49,7 @@ public function Connection() {
if(!is_object($this->_Connection)) {
try {
$this->_Connection = new PDO(strtolower($this->Engine) . ':' . $this->Dsn, $this->User, $this->Password, $this->ConnectionOptions);
$this->_Connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0);
ProTip! Use n and p to navigate between commits in a pull request.