diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index bd9476107..02f6f1bd8 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -1,3 +1,8 @@ +6.2.4 + - Changed text processor to convert HTML tags into text rather than + discarding them. + + 6.2.3 - Changed to new POD format. - Fixed GUID related bugs in search indexer and passive profiling. diff --git a/docs/previousVersion.sql b/docs/previousVersion.sql index 9cd4f7891..d12e81a27 100644 --- a/docs/previousVersion.sql +++ b/docs/previousVersion.sql @@ -2053,7 +2053,7 @@ CREATE TABLE collateralFolder ( -- -INSERT INTO collateralFolder VALUES ('0','Root','0','Top level'); +INSERT INTO collateralFolder VALUES ('0','Root','-1','Top level'); -- -- Table structure for table `databaseLink` @@ -2793,7 +2793,7 @@ INSERT INTO template VALUES ('1','verticalMenu','\r INSERT INTO template VALUES ('3','horizontalMenu','\r\n\r\n\r\n\r\n\r\ntarget=\"_blank\"\r\n href=\"\">\r\n · \r\n\r\n','Navigation',1,1); INSERT INTO template VALUES ('4','DropMenu','\r\n
\r\n\r\n\r\n\r\n\r\n
','Navigation',1,1); INSERT INTO template VALUES ('5','Tabs','\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n target=\"_blank\" href=\"\">\r\n \r\n','Navigation',1,1); -INSERT INTO template VALUES ('6','dtree','^StyleSheet(\"/Navigation/dtree/dtree.css\");\r\n^JavaScript(\"/Navigation/dtree/dtree.js\");\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\r\n
','Navigation',1,1); +INSERT INTO template VALUES ('6','dtree','^StyleSheet(\"/Navigation/dtree/dtree.css\");\r\n^JavaScript(\"/Navigation/dtree/dtree.js\");\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n\r\n\r\n
','Navigation',1,1); INSERT INTO template VALUES ('1','Calendar Month (Big)','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n \">\r\n

\r\n\r\n\r\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n

 
HeaderData\" width=\"14%\" valign=\"top\" align=\"left\">

\n \n \n ·\">
\n
\n
\n
 
\n
\n\n\n\n

\n · · \n
\n
\n','EventsCalendar',1,1); INSERT INTO template VALUES ('7','Cool Menus','\r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n^JavaScript(\"/coolmenus/coolmenus4.js\");\r\n','Navigation',1,1); INSERT INTO template VALUES ('3','Midas','^JavaScript(\"/textFix.js\");\r\n\r\n\r\n \r\n \r\n\r\n\r\n\r\n','richEditor',1,1); @@ -3093,7 +3093,7 @@ CREATE TABLE webguiVersion ( -- -INSERT INTO webguiVersion VALUES ('6.2.2','initial install',unix_timestamp()); +INSERT INTO webguiVersion VALUES ('6.2.3','initial install',unix_timestamp()); -- -- Table structure for table `wobject` diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index 212300808..79f3030ae 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -1,5 +1,5 @@ package WebGUI; -our $VERSION = "6.2.3"; +our $VERSION = "6.2.4"; our $STATUS = "beta"; #------------------------------------------------------------------- diff --git a/lib/WebGUI/HTML.pm b/lib/WebGUI/HTML.pm index 50da81e04..5691a99ac 100644 --- a/lib/WebGUI/HTML.pm +++ b/lib/WebGUI/HTML.pm @@ -156,19 +156,20 @@ The content type to use as formatting. Valid types are 'html', 'text', 'code', a sub format { my ($content, $contentType) = @_; $contentType = 'mixed' unless ($contentType); - if ($contentType eq "mixed") { - unless ($content =~ /\
/g; - } - } elsif ($contentType eq "text") { - $content =~ s/\t/    /g; - $content =~ s/\n/\
/g; - } elsif ($contentType eq "code") { + if ($contentType eq "text" || $contentType eq "code") { $content =~ s/&/&/g; $content =~ s/\/>/g; $content =~ s/\n/\
/g; $content =~ s/\t/    /g; + } + if ($contentType eq "mixed") { + unless ($content =~ /\
/g; + } + } elsif ($contentType eq "text") { + $content =~ s/ /  /g; + } elsif ($contentType eq "code") { $content =~ s/ / /g; $content = '
'.$content.'
'; }