Welcome, Guest. Please Login or Register.
May 09, 2024, 04:13:14 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  General Category  |  Feedback  |  Attachment illegal character renaming « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Attachment illegal character renaming  (Read 2750 times)
Agelmar
YaBB God
*****
Posts: 931


Takako Matsu = Goddess

Attachment illegal character renaming
« on: December 24, 2001, 10:23:26 PM »
Reply with quote

Okay, would someone mind pointing out where the Attachment script renames illegal characters, and if it would be possible for me to disable the renaming of certain characters? i.e. it converts (8)Rivers.scx to 8Rivers.scx, it converts Black Death.scx to Black_Death.scx... I want it to stop changing a space to an underscore, and to stop dropping parenthesis... Some of these files have issues if they're renamed. My server can handle spaces, parenthesis etc without a problem, and so I want to edit the attachments routine to make it stop renaming... just wanted to know where it was, and if doing so would cause any terrible issues...
« Last Edit: December 24, 2001, 10:28:21 PM by Agelmar » Logged

Agelmar
YaBB God
*****
Posts: 931


Takako Matsu = Goddess

Re:Attachment illegal character renaming
« Reply #1 on: December 24, 2001, 10:28:11 PM »
Reply with quote

Okay, I found the line that changed spaces to underscores, took care of that, however the  line that removes "illegal" characters replaces the following:

/[^\w_.-]/

Is this some special PHP argument or something? Trying to figure out how to get it to stop killing (), but I am having trouble seeing where the ( and ) are specified.
Logged

PHPlugin
Sr. Member
****
Posts: 465


WWW
Re:Attachment illegal character renaming
« Reply #2 on: December 24, 2001, 11:23:48 PM »
Reply with quote

hmm where is this code standing?
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Attachment illegal character renaming
« Reply #3 on: December 25, 2001, 01:24:59 AM »
Reply with quote

you should be able to change it to /[^\w_.-\(\)]/ to stop it from replaceing the ( and )
Logged

Agelmar
YaBB God
*****
Posts: 931


Takako Matsu = Goddess

Re:Attachment illegal character renaming
« Reply #4 on: December 25, 2001, 02:01:24 AM »
Reply with quote

okay, thanks...
Logged

ßlãçkÐëâth
Full Member
***
Posts: 118


Frustrated PHP Scripter!

WWW
Re:Attachment illegal character renaming
« Reply #5 on: December 25, 2001, 03:36:06 AM »
Reply with quote

what made you use the name BlackDeath  ;D
Logged

why does everyone keep talking about phpBB 2 here??
[ Click ME!! Click ME!! ]
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Attachment illegal character renaming
« Reply #6 on: December 25, 2001, 04:40:03 AM »
Reply with quote

They are Starcraft map names ;)
Logged

jthorpe
Sr. Member
****
Posts: 331


WWW
Re:Attachment illegal character renaming
« Reply #7 on: December 29, 2001, 06:16:33 PM »
Reply with quote

I am having the underscore problem with my users.  When I did the conversion, it put underscores where a space should be.  I got about 25 emails today from people having that problem.  Is there a fix for it?
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  Attachment illegal character renaming « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.054 seconds with 19 queries.