mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 08:06:38 +02:00
This commit is contained in:
@@ -183,10 +183,12 @@ TEMPL;
|
||||
exit;
|
||||
}
|
||||
|
||||
$content = html_entity_decode($content);
|
||||
$text = !empty($content) ? "[html]".$content."[/html]" : ''; // Add the tags before saving to DB.
|
||||
}
|
||||
else // User doesn't have HTML access - bbcode Mode.
|
||||
{
|
||||
$content = html_entity_decode($content);
|
||||
$text = e107::getBB()->htmltoBBcode($content); // not reliable enough yet.
|
||||
}
|
||||
|
||||
|
@@ -202,8 +202,12 @@
|
||||
_e107_html2bbcode : function(s, url) {
|
||||
s = tinymce.trim(s);
|
||||
|
||||
// return s;
|
||||
|
||||
if(s === '')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
// console.log('html2bbcode '+ s);
|
||||
|
||||
var p = $.ajax({
|
||||
type: "POST",
|
||||
url: url + "/parser.php",
|
||||
@@ -228,9 +232,13 @@
|
||||
_e107_bbcode2html : function(s, url) {
|
||||
s = tinymce.trim(s);
|
||||
|
||||
// FIXME mod-security might block the ajax call below with Rules: 942230, 949110, 980130 - reason yet unknown.
|
||||
if(s === '')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
// return s;
|
||||
// FIXME mod-security might block the ajax call below with Rules: 942230, 949110, 980130 - reason yet unknown.
|
||||
// console.log('bbcode2html '+ s);
|
||||
|
||||
var p = $.ajax({
|
||||
type: "POST",
|
||||
|
Reference in New Issue
Block a user