|
|
Joined: Aug 2001
Posts: 32
Member
|
Member
Joined: Aug 2001
Posts: 32 |
Hi everyone! Me again! A user posted a plus sign [+] at the end of his post right before a new page was supposed to be created [his was the 35th and last post on the page] when the next user posted, their post came through but page 12 came up as file not found. I looked in the CGI file and the + because it was the last thing in the post came right before a pipestem. Editing the plus out of the post brought the next page up, so that's fixed; but can someone please explain to me how I would restrict users from posting restricted characters at the very end of their posts and signatures? UBB 5.45c Thanks. 
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Why don't you censor a + sign? That is the only way I can think of.
|
|
|
|
Joined: Aug 2001
Posts: 32
Member
|
Member
Joined: Aug 2001
Posts: 32 |
That's a good idea Lord Dexter, but I think it's too restrictive. It won't affect anything if posters use plus signs in their posts - it is only a problem at the end of the post.
*sigh*
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Well I think you have a problem, I don't think there is any way of censoring the + sign ONLY in the last post....
|
|
|
|
Joined: Aug 2001
Posts: 32
Member
|
Member
Joined: Aug 2001
Posts: 32 |
Yeah, you're right - I've been racking my brain for how to do it, but it doesn't seem feasible as there's so little control over the post itself in PostMess If I censor it, it will show up as a little star, right? And I'll probably need to do the same for the minus sign - what else can cause problems before a pipestem?
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
I'd say these would: + - _ =.
|
|
|
|
Joined: Apr 2001
Posts: 57
Member
|
Member
Joined: Apr 2001
Posts: 57 |
I'm curious if this was fixed in a later 5.4* series or not. Anyway, you could do a simple regexp for messages that end in a + or - like this for example:
$Message =~ s/(-|+)$//;
You'd need to modify postings.cgi and do this for new topics, replies, and edited posts.
[ 09-23-2001: Message edited by: treszoks ]
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|