From d3f137b9c1a04c254b9d2c04c8ea91e031e2656f Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Sun, 9 Oct 2011 16:09:22 +0200 Subject: [PATCH] cosmetic tweak --- src/Symfony/Component/HttpFoundation/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 77a1e50800..45e66bf2ed 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -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; }