diff options
-rwxr-xr-x | comptage | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -120,8 +120,8 @@ function TraiteFile ($db, $table, $path, $Verb) { echo "+ rejected \n"; if ($ok && $Verb<4) { - $rpm = urldecode($rpm); // ++ in name - $ver = urldecode($ver); // ~ in version + if (strpos($rpm, '%')) $rpm = urldecode($rpm); // ++ in name + if (strpos($ver, '%')) $ver = urldecode($ver); // ~ in version $sql = sprintf("SELECT ref FROM %s WHERE `name`='%s' AND `version`='%s' AND `release`='%s' AND `distro`='%s' AND `arch`='%s'", $table, $rpm, $ver, $rel, $dis, $arc); |