context_title
context_text
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
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
push @censored, [ $tmpa, $tmpb, $tmpc ];
Add before:
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.
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
while ( my $buffer = <$CENSOR> ) {
replace with
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.
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.
- ah, but that <br /> line break is the issue, isn't it?
Try:
On Load.pm find
$buffer =~ s/\r(?=\n*)//gxsm;
add before
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.
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]
[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
Forum Jump »
Board Index
» 10 most recent Posts
» 10 most recent Topics
News and Updates
YaBB News
General Category
General Board
Test Zone
- Test Sub
- Test sub 2
Showcase
Archived Development Forums
- http://www.yabb26.yabbforumsoftware.com/
YaBB Development
HTML5 and CSS
SQL - yes, we're heading there
New Features
Documentation
On the Road to 2.7
Lounge
Talk it Up
The Comedy Club
Support
Security Announcements
YaBB 2.6.0 and 2.6.1 Support
Other Places
- http://www.yabbforum.com/
- https://www.facebook.com/YaBBForum/
- http://yabbmain.yabbforumsoftware.com/cgi-bin/community/YaBB.pl
Converting to other software
Mod Spot
Mods Wanted (Old Mods)
Mods Wanted (New Mods)
2.6.1 Mods
2.6.0 Mods
- http://www.xonder.com/cgi-bin/yabb26/YaBB.pl
- http://boardmod.de
- http://www.boardmod.org/cgi-bin/forum/YaBB.pl
- http://boardmod26.yabbforumsoftware.com/cgi-bin/yabb2/YaBB.pl
2.5.2 Mods
2.7.00 Mods
- http://yabbforumsoftware.com/cgi-bin/modlang/modlang.pl
Templates for 2.7
Helps
YaBB Administration
Language Packs (2.6)
- Suomi
- Русский
- Deutsch
Language Packs (2.7)
http://yabbforumsoftware.com/cgi-bin/langfix/complang.pl
Bug Zone
YaBB Bugs
YaBB 2.7 Issues ««