Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2001
Posts: 32
Member
Member
Offline
Joined: Aug 2001
Posts: 32
Hi everyone!

Me again! laugh
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. laugh

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
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
Offline
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
Offline
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
Offline
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 frown

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?

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I'd say these would: + - _ =.

Joined: Apr 2001
Posts: 57
Member
Member
Offline
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 ]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)