diff --git a/.gitignore b/.gitignore index 371c8be2f5e..e4790fe7b4e 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ yarn.lock package-lock.json doc/install.lock +/factory/ diff --git a/ChangeLog b/ChangeLog index f19919b2d33..059fc0d145c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -616,7 +616,8 @@ Following changes may create regressions for some external modules, but were nec * Removed deprecated substitution key __REFCLIENT__ (replaced with __REF_CLIENT__) * Removed constant MAIN_COUNTRIES_IN_EEC. You can now set if country is in Europe or not from the dictionary of countries. * v14 seems to work correctly on PHP v8 but it generates a lot of verbose warnings. Currently, v14 i snot yet officialy supported with PHP 8. - +* To execute shell or command line command, your code must never use method like exec, shell_exec, popen, .. but must use the built-in + method executeCLI() available into core/class/utils.class.php ***** ChangeLog for 13.0.5 compared to 13.0.4 ***** diff --git a/htdocs/admin/dolistore/class/dolistore.class.php b/htdocs/admin/dolistore/class/dolistore.class.php index 00d902f1bbb..e823d6e2d37 100644 --- a/htdocs/admin/dolistore/class/dolistore.class.php +++ b/htdocs/admin/dolistore/class/dolistore.class.php @@ -284,7 +284,8 @@ class Dolistore $download_link .= '

'; } - //checking versions + // Set and check version + $version = ''; if ($this->version_compare($product->dolibarr_min, DOL_VERSION) <= 0) { if ($this->version_compare($product->dolibarr_max, DOL_VERSION) >= 0) { //compatible @@ -317,14 +318,21 @@ class Dolistore } //output template - $html .= ' -
'.dol_escape_htmltag($newapp.$images).'
-

'.dol_escape_htmltag($product->name->language[$this->lang - 1]) - .'
'.dol_escape_htmltag($version).'

- '.dol_print_date(dol_stringtotime($product->date_upd), 'dayhour').' - '.$langs->trans('Ref').': '.dol_escape_htmltag($product->reference).' - '.dol_escape_htmltag($langs->trans('Id')).': '.((int) $product->id).'

'.dol_escape_htmltag($product->description_short->language[$this->lang - 1]).''; + $html .= ''; + $html .= '
'; + $html .= $newapp.$images; // No dol_escape_htmltag, it is already escape html + $html .= '
'; + $html .= '

'; + $html .= dol_escape_htmltag($product->name->language[$this->lang - 1]); + $html .= '
'; + $html .= $version; // No dol_escape_htmltag, it is already escape html + $html .= '

'; + $html .= ' '.dol_print_date(dol_stringtotime($product->date_upd), 'dayhour').' - '.$langs->trans('Ref').': '.dol_escape_htmltag($product->reference).' - '.dol_escape_htmltag($langs->trans('Id')).': '.((int) $product->id).'

'.dol_escape_htmltag($product->description_short->language[$this->lang - 1]).''; // do not load if display none //$html .= ''.$product->description->language[$this->lang - 1].''; - $html .= ''.dol_escape_htmltag($price).''; + $html .= ''; + $html .= $price; + $html .= ''; $html .= ''.$download_link.''; $html .= ''; } diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 4a6c04fb3ec..fc54fbaf575 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -526,7 +526,7 @@ if ($mode == 'common' || $mode == 'commonkanban') { $moreforfilter = '
'; - $moreforfilter .= '