com web/bugs: move escaping until after strict comparison: include/functions.php

From: Date: Mon, 08 Sep 2014 23:11:56 +0000
Subject: com web/bugs: move escaping until after strict comparison: include/functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-19907@lists.php.net to get a copy of this message
Commit: 64d730aeb02dcababef44357d2aa15b2d64e8df5 Author: Peter Cowburn <petercowburn@gmail.com> Tue, 9 Sep 2014 00:11:56 +0100 Parents: 74b9b024e8c67130d34bb46910d80a8266958838 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=64d730aeb02dcababef44357d2aa15b2d64e8df5 Log: move escaping until after strict comparison This should (fingers crossed) bring back the list of quick links in "new bug" email notifications. Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index 5eb42c8..1344497 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1561,10 +1561,10 @@ function get_resolve_reasons($project = false) $where = ''; - $project = escapeSQL($project); - - if ($project !== false) + if ($project !== false) { + $project = escapeSQL($project); $where.= "WHERE (project = '{$project}' OR project = '')"; + } $resolves = $variations = array(); $res = $dbh->prepare("SELECT * FROM bugdb_resolves $where")->execute(array());

« previous php.webmaster (#19907) next »