Page Index Toggle Pages: 1 ... 18 19 [20]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Users Avatars Upload v1 (Read 68546 times)
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Users Avatars Upload v1
Reply #285 - Feb 26th, 2008 at 9:12am
Print Post  
not yet. wait for YaBB 2.2.1  Wink We are busy with YaBB 2.2.1
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
freddy-lives
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 29
Joined: Nov 11th, 2006
Re: Users Avatars Upload v1
Reply #286 - Apr 4th, 2008 at 9:40pm
Print Post  
Any news on this mod being modified for use with Yabb 2.2.1? Smiley
  
Back to top
 
IP Logged
 
c0ldshadow
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 23
Joined: Jan 28th, 2007
Re: Users Avatars Upload v1
Reply #287 - Apr 30th, 2008 at 8:26pm
Print Post  
i think i found a bad bug/security issue

if a user tries to upload an avatar and they have a dash in there user name, the file gets stored on the server with a %2d in the file name instead of a dash. also, avatars for users with dashes in there username wolnt work
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Users Avatars Upload v1
Reply #288 - Apr 30th, 2008 at 9:30pm
Print Post  
Edit Sources/UsersAvatars.pl

Search
Code
Select All
		# replace . with _ in the filename except for the extension
		$fixname = $fixfile;
		$fixname =~ s/(\S+)(\.\S+\Z)/$1/gi;
		$fixext = $2;
		$fixext  =~ s/(pl|cgi|php|phtml|html|htm|asp)/_$1/gi;
		$fixname =~ s/\./\_/g;
		$fixfile = qq~$useravname$fixext~; 



Add After
Code
Select All
		$fixfile =~ s/%2D/-/g; 

  

greetings
Jeff
Back to top
WWW  
IP Logged
 
c0ldshadow
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 23
Joined: Jan 28th, 2007
Re: Users Avatars Upload v1
Reply #289 - May 1st, 2008 at 9:10pm
Print Post  
thanks jet li!!

are there any other characters that would cause issues that you can think of, or should everything be ok now?

peace
-ave
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 18 19 [20] 
Send TopicPrint