We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81a793f + 1fb5720 commit 6cea5a8Copy full SHA for 6cea5a8
lib/request/sfWebRequest.class.php
@@ -192,7 +192,7 @@ public function getContentType($trim = true)
192
{
193
$contentType = $this->getHttpHeader('Content-Type', null);
194
195
- if ($trim && false !== $pos = strpos($contentType, ';'))
+ if ($trim && false !== $pos = strpos($contentType !== null ? $contentType : '', ';'))
196
197
$contentType = substr($contentType, 0, $pos);
198
}
0 commit comments