Commit:    64d730aeb02dcababef44357d2aa15b2d64e8df5
Author:    Peter Cowburn <[email protected]>         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());


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to