cosmetic tweak

This commit is contained in:
Lukas Kahwe Smith 2011-10-09 16:09:22 +02:00
parent 28778834c7
commit d3f137b9c1

View File

@ -1029,7 +1029,7 @@ class Request
// Cut off any q-value that might come after a semi-colon
if (preg_match('/;\s*(q=.*$)/', $value, $match)) {
$q = (float) substr(trim($match[1]), 2);
$value = trim(substr($value, 0, -1*strlen($match[0])));
$value = trim(substr($value, 0, -strlen($match[0])));
} else {
$q = 1;
}