Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) censored words (Read 3695 times)
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
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
Select All
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
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_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 | 179 Downloads )

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.  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
« Last Edit: Nov 15th, 2017 at 5:12am by Dandello »  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
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)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
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)
Select All
                 chomp $buffer;
                 $buffer =~ s/\r(?=\n*)//gxsm; 

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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
Select All
            while ( my $buffer = <$CENSOR> ) { 



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

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
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)
Select All
            while ( chomp ( my $buffer = <$CENSOR> ) ) {
                 chomp $buffer;
                 $buffer =~ s/\r(?=\n*)//gxsm; 



  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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)
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.
« Last Edit: Nov 15th, 2017 at 3:46pm by Dandello »  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
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)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: censored words
Reply #8 - Nov 17th, 2017 at 1:18pm
Mark & QuoteQuote  
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 ];
             } 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
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)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
censored words

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