diff --git a/dev/setup/codesniffer/ruleset.xml b/dev/setup/codesniffer/ruleset.xml
index 9c564c24b0c..e4bdefaecd4 100644
--- a/dev/setup/codesniffer/ruleset.xml
+++ b/dev/setup/codesniffer/ruleset.xml
@@ -167,7 +167,6 @@
| color ? ' style="background: #'.$categstatic->color.';"' : ' style="background: #aaa"').'>'.$li.' | '.$counter. - //''.dolGetFirstLineOfText($desc).' | '. - ''.img_view().' | '. - '
\'+record.text+\'\';
- return \'
\'+record.text+\'\';';
+ $out .= 'return \'
\'+record.text+\'\';';
}
else
{
diff --git a/htdocs/core/filemanagerdol/connectors/php/util.php b/htdocs/core/filemanagerdol/connectors/php/util.php
index 3ea4baf8c87..1349ed00dad 100644
--- a/htdocs/core/filemanagerdol/connectors/php/util.php
+++ b/htdocs/core/filemanagerdol/connectors/php/util.php
@@ -56,16 +56,10 @@ function RemoveFromEnd($sourceString, $charToRemove)
*/
function FindBadUtf8($string)
{
- $regex = '([\x00-\x7F]'.
- '|[\xC2-\xDF][\x80-\xBF]'.
- '|\xE0[\xA0-\xBF][\x80-\xBF]'.
- '|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}'.
- '|\xED[\x80-\x9F][\x80-\xBF]'.
- '|\xF0[\x90-\xBF][\x80-\xBF]{2}'.
- '|[\xF1-\xF3][\x80-\xBF]{3}'.
- '|\xF4[\x80-\x8F][\x80-\xBF]{2}'.
- '|(.{1}))';
+ $regex = '([\x00-\x7F]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]';
+ $regex .= '|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2}|(.{1}))';
+ $matches =array();
while (preg_match('/'.$regex.'/S', $string, $matches)) {
if (isset($matches[2])) {
return true;
diff --git a/htdocs/core/js/lib_notification.js.php b/htdocs/core/js/lib_notification.js.php
index 3e4f838fe33..769e0a36157 100644
--- a/htdocs/core/js/lib_notification.js.php
+++ b/htdocs/core/js/lib_notification.js.php
@@ -75,7 +75,7 @@ if (!($_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root.'/' || $_SERVER['HTTP
var audio = null;
global->AGENDA_REMINDER_BROWSER_SOUND)) {
- print 'audio = new Audio(\''.DOL_URL_ROOT.'/theme/common/sound/notification_agenda.wav'.'\');';
+ print 'audio = new Audio(\''.DOL_URL_ROOT.'/theme/common/sound/notification_agenda.wav\');';
}
?>
diff --git a/htdocs/core/lib/cron.lib.php b/htdocs/core/lib/cron.lib.php
index 8128a449cfd..33ad0a85229 100644
--- a/htdocs/core/lib/cron.lib.php
+++ b/htdocs/core/lib/cron.lib.php
@@ -107,7 +107,7 @@ function dol_print_cron_urls()
print ''.$langs->trans("FileToLaunchCronJobs").':