pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: censored words Nov 14th, 2017 at 9:54am Mark & QuoteQuote 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 dating-fraud.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 [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_2" 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 bild2.jpg ( 156 KB | 181 Downloads ) if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: censored words Reply #1 - Nov 14th, 2017 at 1:12pm Mark & QuoteQuote Ah, looks like you've come up with a brilliant solution to the moved folder problem. - ah, but that <br /> line break is the issue, isn't it? Try: On Load.pm find Code $buffer =~ s/\r(?=\n*)//gxsm; add before Code chomp $buffer; Edited: Typo « Last Edit: Nov 15th, 2017 at 5:12am by Dandello » Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: censored words Reply #2 - Nov 14th, 2017 at 6:25pm Mark & QuoteQuote 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. if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: censored words Reply #3 - Nov 15th, 2017 at 3:54am Mark & QuoteQuote No function. In addition, the line looks different to me. Code (Perl) chomp $buffer; $buffer =~ s/\r(?=\n*)//gxsm; if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: censored words Reply #4 - Nov 15th, 2017 at 5:17am Mark & QuoteQuote Okay - this is basically rolling back to 2.6: In Load.pm find Code while ( my $buffer = <$CENSOR> ) { replace with Code while ( chomp ( my $buffer = <$CENSOR> ) ) { Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: censored words Reply #5 - Nov 15th, 2017 at 6:28am Mark & QuoteQuote Quote:Ein Fehler ist aufgetreten! Use of uninitialized value $buffer in chomp at Sources/Load.pm line 193, <_GEN_4> line 13. Code (Perl) while ( chomp ( my $buffer = <$CENSOR> ) ) { chomp $buffer; $buffer =~ s/\r(?=\n*)//gxsm; if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: censored words Reply #6 - Nov 15th, 2017 at 2:37pm Mark & QuoteQuote 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) push @censored, [ $tmpa, $tmpb, $tmpc ]; Add before: Code (Perl) 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. « Last Edit: Nov 15th, 2017 at 3:46pm by Dandello » Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: censored words Reply #7 - Nov 17th, 2017 at 5:07am Mark & QuoteQuote not work Quote:Ein Fehler ist aufgetreten! Use of uninitialized value $buffer in chomp at Sources/Load.pm line 193, <_GEN_4> line 13. if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: censored words Reply #8 - Nov 17th, 2017 at 1:18pm Mark & QuoteQuote That section in Load.pm should now look like Code (Perl) 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 ]; } Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: censored words Reply #9 - Nov 17th, 2017 at 8:50pm Mark & QuoteQuote I think it works. at least it looks like that. Must test that exactly. if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: censored words Reply #10 - Nov 17th, 2017 at 9:19pm Mark & QuoteQuote Your previous tests actually saved the breaks into the message so those will need to be edited. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: censored words Reply #11 - Nov 19th, 2017 at 2:18pm Mark & QuoteQuote 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. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged