// remove additionnal \t
This commit is contained in:
+2
-2
@@ -987,7 +987,7 @@ class ToolsCore
|
|||||||
|
|
||||||
// Remove all non-whitelist chars.
|
// Remove all non-whitelist chars.
|
||||||
if ($allow_accented_chars)
|
if ($allow_accented_chars)
|
||||||
$str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str);
|
$str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str);
|
||||||
else
|
else
|
||||||
$str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-]/','', $str);
|
$str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-]/','', $str);
|
||||||
|
|
||||||
@@ -1288,7 +1288,7 @@ class ToolsCore
|
|||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
curl_setopt($curl, CURLOPT_URL, $url);
|
||||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||||
curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout);
|
curl_setopt($curl, CURLOPT_TIMEOUT, $curl_timeout);
|
||||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
||||||
$opts = stream_context_get_options($stream_context);
|
$opts = stream_context_get_options($stream_context);
|
||||||
if (isset($opts['http']['method']) && Tools::strtolower($opts['http']['method']) == 'post')
|
if (isset($opts['http']['method']) && Tools::strtolower($opts['http']['method']) == 'post')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user