YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
URL Encoding (Ban Email and Attachments) (Read 1,720 times)
 Aug 21st, 2012 at 4:54pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
URL Encoding (Ban Email and Attachments)
 
 
IP Logged  
 Reply #1 - Aug 21st, 2012 at 9:15pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,615
Land of the Blazing Sun!


None
Re: URL Encoding (Ban Email and Attachments)
Thanks very much Derek -

Cool
 
I find your lack of faith disturbing.
 
IP Logged  
 Reply #2 - Aug 21st, 2012 at 9:27pm
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: URL Encoding (Ban Email and Attachments)
The attachment file names should be encoded in the message index pop-up too.

In Sources/Downloads.pl find:

Code (Javascript)Select All
        window.open('$scripturl?action=downloadfile;file=' + amfn,'_blank'); 


And replace with:

Code (Javascript)Select All
        window.open('$scripturl?action=downloadfile;file=' + encodeURIComponent(amfn),'_blank'); 


 
 
IP Logged  
 Reply #3 - Aug 22nd, 2012 at 12:02am
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: URL Encoding (Ban Email and Attachments)
Thanks Derek. With any luck I can have these 'adjustments' made before Thursday.
 
WWW  
IP Logged  
 Reply #4 - Aug 22nd, 2012 at 12:31am
There are no actions to perform.  

Derek Barnstorm 
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline
Posts: 1,269
United Kingdom


YaBB 2.5
Re: URL Encoding (Ban Email and Attachments)
No probs.

It's allowed to register with a + symbol in usernames, so it needs to be added for banning usernames from the view profile page too:

In Profile.pl find:

Code (Perl)Select All
        if ($is_banned =~/U/) { $ban_user_link = qq~<a href="$adminurl?action=ipban3;ban_memname=$useraccount{$user};username=$useraccount{$user};unban=1"><span class="small">[$profile_txt{'903'}]</span></a>~; }
        else { $ban_user_link = qq~<a href="$adminurl?action=ipban3;ban_memname=$useraccount{$user};username=$useraccount{$user}"><span class="small">[$profile_txt{'906'}]</span></a>~; } 


And replace with:

Code (Perl)Select All
        $ban_user_name = $useraccount{$user};
        $ban_user_name =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;
        if ($is_banned =~/U/) { $ban_user_link = qq~<a href="$adminurl?action=ipban3;ban_memname=$ban_user_name;username=$useraccount{$user};unban=1"><span class="small">[$profile_txt{'903'}]</span></a>~; }
        else { $ban_user_link = qq~<a href="$adminurl?action=ipban3;ban_memname=$ban_user_name;username=$useraccount{$user}"><span class="small">[$profile_txt{'906'}]</span></a>~; } 

 
 
IP Logged  
 Reply #5 - Aug 22nd, 2012 at 3:56pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: URL Encoding (Ban Email and Attachments)
Off-Topic replies have been moved to this Topic.
 
WWW  
IP Logged  
 Reply #6 - Nov 6th, 2012 at 9:31pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Online
Posts: 1,853
Earth


YaBB 2.5
Re: URL Encoding (Ban Email and Attachments)
This Topic was moved here from YaBB 2 - Bugs [Need Verification] by Dandello.
 
WWW  
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.