mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Fix: No alpha here, this breaks ability to submit html content with
images or links.
This commit is contained in:
@@ -86,7 +86,9 @@ foreach($modules as $const => $desc)
|
|||||||
|
|
||||||
if (GETPOST('save','alpha'))
|
if (GETPOST('save','alpha'))
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "FCKEDITOR_TEST", GETPOST('formtestfield','alpha'),'chaine',0,'',$conf->entity);
|
$res=dolibarr_set_const($db, "FCKEDITOR_TEST", GETPOST('formtestfield'),'chaine',0,'',$conf->entity);
|
||||||
|
|
||||||
|
if ($res > 0) $mesg=$langs->trans("RecordModifiedSuccessfully");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -103,6 +105,12 @@ print '<br>';
|
|||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
|
if (empty($conf->use_javascript_ajax))
|
||||||
|
{
|
||||||
|
dol_htmloutput_errors('',array($langs->trans("NotAvailable"),$langs->trans("JavascriptDisabled")),1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td colspan="2">'.$langs->trans("ActivateFCKeditor").'</td>';
|
print '<td colspan="2">'.$langs->trans("ActivateFCKeditor").'</td>';
|
||||||
@@ -137,6 +145,7 @@ foreach($modules as $const => $desc)
|
|||||||
|
|
||||||
print '</table>'."\n";
|
print '</table>'."\n";
|
||||||
|
|
||||||
|
dol_htmloutput_mesg($mesg);
|
||||||
|
|
||||||
print '<br>'."\n";
|
print '<br>'."\n";
|
||||||
print_fiche_titre($langs->trans("TestSubmitForm"),'','');
|
print_fiche_titre($langs->trans("TestSubmitForm"),'','');
|
||||||
@@ -153,6 +162,7 @@ print '</form>'."\n";
|
|||||||
print '<!-- Result -->';
|
print '<!-- Result -->';
|
||||||
print $conf->global->FCKEDITOR_TEST;
|
print $conf->global->FCKEDITOR_TEST;
|
||||||
*/
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user