git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eaaffe
)
allow Server subclasses to use their own parser for charset detection
author
gggeek
<giunta.gaetano@gmail.com>
Sat, 25 Feb 2023 13:28:14 +0000
(13:28 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Sat, 25 Feb 2023 13:28:14 +0000
(13:28 +0000)
src/Server.php
patch
|
blob
|
history
diff --git
a/src/Server.php
b/src/Server.php
index
e0436d3
..
8c24d5e
100644
(file)
--- a/
src/Server.php
+++ b/
src/Server.php
@@
-654,7
+654,8
@@
class Server
// 'guestimate' request encoding
/// @todo check if mbstring is enabled and automagic input conversion is on: it might mingle with this check???
- $reqEncoding = XMLParser::guessEncoding(isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : '',
+ $parser = $this->getParser();
+ $reqEncoding = $parser->guessEncoding(isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : '',
$data);
return null;