Add Poll
 
Options: Text Color Split Pie
 
 
 
 
 
 
 
 
Poll Comment:
Max 500 characters. Remaining characters:
days and minutes. Leave it blank if you don't want to set it now.

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry
Topic Summary - Displaying 12 post(s). Click here to show all
Posted by: Dandello
Posted on: Nov 19th, 2017 at 2:18pm
In Post.pm find all instances of do_censor and comment out or remove those lines - this will prevent posts from going through the censor twice. It also means that the original post will be saved with the bad words intact BUT since only someone modifying the post or reading the raw data will see them, I figure that's okay.
Posted by: Dandello
Posted on: Nov 17th, 2017 at 9:19pm
Your previous tests actually saved the breaks into the message so those will need to be edited.
Posted by: pyragony54
Posted on: Nov 17th, 2017 at 8:50pm
I think it works. at least it looks like that. Must test that exactly.
Posted by: Dandello
Posted on: Nov 17th, 2017 at 1:18pm
That section in Load.pm should now look like
Code (Perl)
Select All
            while ( my $buffer = <$CENSOR> ) {
                 $buffer =~ s/\r(?=\n*)//gxsm;
                 my ( $tmpa, $tmpb, $tmpc );
                 if ( $buffer =~ m/\~/xsm ) {
                     ( $tmpa, $tmpb ) = split /\~/xsm, $buffer;
                     $tmpc = 0;
                 }
                 else {
                     ( $tmpa, $tmpb ) = split /=/xsm, $buffer;
                     $tmpc = 1;
                 }
                 chomp $tmpb;
                 push @censored, [ $tmpa, $tmpb, $tmpc ];
             } 

Posted by: pyragony54
Posted on: Nov 17th, 2017 at 5:07am
not work

Quote:
Ein Fehler ist aufgetreten! Use of uninitialized value $buffer in chomp at Sources/Load.pm line 193, <_GEN_4> line 13.
Posted by: Dandello
Posted on: Nov 15th, 2017 at 2:37pm
I've been running tests AND: the adding of the linebreaks is fickin' weird. More testing underway.

Found the 'tard : In Load.pm find
Code (Perl)
Select All
                push @censored, [ $tmpa, $tmpb, $tmpc ]; 



Add before:
Code (Perl)
Select All
                chomp $tmpb; 



HOWEVER - if the extra line breaks have already been added they will need to be hand-edited out.

I'm going to remove the do_censor from Post.pm as that is actually part of this problem.
Posted by: pyragony54
Posted on: Nov 15th, 2017 at 6:28am
Quote:
Ein Fehler ist aufgetreten! Use of uninitialized value $buffer in chomp at Sources/Load.pm line 193, <_GEN_4> line 13.


Code (Perl)
Select All
            while ( chomp ( my $buffer = <$CENSOR> ) ) {
                 chomp $buffer;
                 $buffer =~ s/\r(?=\n*)//gxsm; 



Posted by: Dandello
Posted on: Nov 15th, 2017 at 5:17am
Okay - this is basically rolling back to 2.6:
In Load.pm find
Code
Select All
            while ( my $buffer = <$CENSOR> ) { 



replace with
Code
Select All
            while ( chomp ( my $buffer = <$CENSOR> ) ) { 

Posted by: pyragony54
Posted on: Nov 15th, 2017 at 3:54am
No function. In addition, the line looks different to me.
Code (Perl)
Select All
                 chomp $buffer;
                 $buffer =~ s/\r(?=\n*)//gxsm; 

Posted by: pyragony54
Posted on: Nov 14th, 2017 at 6:25pm
have to test that first. I did not notice that at first.
I have just come from drinking with my friends. Must be synonymous sometimes.
Posted by: Dandello
Posted on: Nov 14th, 2017 at 1:12pm
Ah, looks like you've come up with a brilliant solution to the moved folder problem.  Smiley - ah, but that <br /> line break is the issue, isn't it?

Try:
On Load.pm find
Code
Select All
$buffer =~ s/\r(?=\n*)//gxsm; 


add before
Code
Select All
chomp $buffer; 



Edited:
Typo
Posted by: pyragony54
Posted on: Nov 14th, 2017 at 9:54am
First of all: With the version 2.6.12 it worked.

I donated my own domain to my picture gallery.
In order not to have to change the links on hundreds of pages, I entered this as a censored word.

Code
Select All
gallery.anti-scam.de=dating-fraud.de   (without line brake) 



Now it looks like this in my test forum. It looks like a line break is inserted.

Quote:
[url=http://dating-fraud.de
/albums/userpics/10002/gulia-30e.jpg][url]http://dating-fraud.de
/albums/userpics/10002/thumb_gulia-30e.jpg[/url][/url] [url=http://dating-fraud.de
/albums/userpics/10002/gulia-30a.jpg][url]http://dating-fraud.de
/albums/userpics/10002/thumb_gulia-30a.jpg[/url][/url] [url=http://dating-fraud.de
/albums/userpics/10002/gulia-30f.jpg][url]http://dating-fraud.de
/albums/userpics/10002/thumb_gulia-30f.jpg[/url][/url] [url=http://dating-fraud.de
/albums/userpics/10002/gulia-30c.jpg][url]http://dating-fraud.de
/albums/userpics/10002/thumb_gulia-30c.jpg[/url][/url] [url=http://dating-fraud.de
/albums/userpics/10002/gulia-30d.jpg][url]http://dating-fraud.de
/albums/userpics/10002/thumb_gulia-30d.jpg[/url][/url] [url=http://dating-fraud.de
/albums/userpics/10002/gulia-30b.jpg][url]http://dating-fraud.de
/albums/userpics/10002/thumb_gulia-30b.jpg[/url][/url]


Code
Select All
[url=http://dating-fraud.de<br />/albums/userpics/10002/gulia-30e.jpg]<br/>/albums/userpics/10002/thumb_gulia-30e.jpg" data-rel="gb_image[nice_pics]" title="thumb_gulia-30e.jpg"><br/>/albums/userpics/10002/thumb_gulia-30e.jpg" id="post_img_resize_1" alt="thumb_gulia-30e.jpg" title="thumb_gulia-30e.jpg" style="display:none" />[/url] [url=http://dating-fraud.de<br />/albums/userpics/10002/gulia-30a.jpg][/url] [url=http://dating-fraud.de<br />/albums/userpics/10002/gulia-30f.jpg][/url] [url=http://dating-fraud.de<br />/albums/userpics/10002/gulia-30c.jpg][/url] [url=http://dating-fraud.de<br />/albums/userpics/10002/gulia-30d.jpg][/url] [url=http://dating-fraud.de<br />/albums/userpics/10002/gulia-30b.jpg][/url]
  


Here is a screener