diff options
author | Remi Collet <remi@remirepo.net> | 2017-09-07 08:30:15 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-09-07 08:30:15 +0200 |
commit | d1250fcf410ff969a76180d42ca1cf688d7ffd09 (patch) | |
tree | c6312da243a3f933a1c8f0ae256651fe782b1fd4 /comptage | |
parent | 81bfbc7d251db1a18af5a2caf30fa96f9e1394e5 (diff) |
fix comptage
Diffstat (limited to 'comptage')
-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); |