git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for setting ssl version to use
[plcapi.git]
/
debugger
/
common.php
diff --git
a/debugger/common.php
b/debugger/common.php
index
4cc87ae
..
89a995b
100644
(file)
--- a/
debugger/common.php
+++ b/
debugger/common.php
@@
-1,8
+1,7
@@
<?php
/**
<?php
/**
- * @version $Id$
* @author Gaetano Giunta
* @author Gaetano Giunta
- * @copyright (C) 2005-20
08
G. Giunta
+ * @copyright (C) 2005-20
14
G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*
* @todo switch params for http compression from 0,1,2 to values to be used directly
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*
* @todo switch params for http compression from 0,1,2 to values to be used directly
@@
-23,10
+22,13
@@
$_GET = array_map('stripslashes_deep', $_GET);
}
$_GET = array_map('stripslashes_deep', $_GET);
}
+ $preferredEncodings = 'UTF-8, ASCII, ISO-8859-1, UTF-7, EUC-JP, SJIS, eucJP-win, SJIS-win, JIS, ISO-2022-JP';
+ $inputcharset = mb_detect_encoding(urldecode($_SERVER['REQUEST_URI']), $preferredEncodings);
if ( isset( $_GET['usepost'] ) && $_GET['usepost'] === 'true' )
{
$_GET = $_POST;
if ( isset( $_GET['usepost'] ) && $_GET['usepost'] === 'true' )
{
$_GET = $_POST;
+ $inputcharset = mb_detect_encoding(implode('', $_GET), $preferredEncodings);
}
// recover input parameters
}
// recover input parameters