Posted on 18-Feb-2001 19:12 GMT by Christian Kemp | 17 comments View flat View list |
As you might have noticed, I did some minor maintenance on ANN's layout and re-arranged a few things while fixing a few inconveniences. What do you think?
|
|
List of all comments to this article |
MOTD 18/Feb/2001 : Comment 14 of 17 | ANN.lu |
Posted by Christian Kemp on 18-Feb-2001 23:00 GMT | In reply to Comment 9 (Anonymous): > That brings me to an idea CK. Is there any way that you could check to see if
> someone posts a message with "http://" and post a warning message as needed.
> Same goes for "*@*.*" (email purposes). Doing so would help eliminate the
> badly formed posts.
Detecting all kinds of links is kinda hard, since you never know which character really ends an URL. I wouldn't even dare to think what kind of regexp (if that's even the technical term) I would have to come up with to cater with all kinds of argument separators and special characters the various websites tend to use. What could perhaps be done would be to just count HREF's and http's or mailto's and if either one exceeds the other, complain.
> Another idea would be to check and see if the message does not contain
> any "<P>" or "<BR>" tags.
In some cases, paragraph separators do make sense, even if I try not to use them.
> I'm working with Apache/1.3.6 but I haven't clue one about PHP/3 or PHP/4. I
> know that it's possible, but a pain nonetheless. Hell, if it was ARexx, I'd
> write it for you and have it at your door in a couple shakes. :-)
I'm not using PHP at this point, everything is in Perl.
Depending on the upcoming Dreamhost update, I might have access to mysql and then also use PHP, but on the other hand I think I'll just keep on using Perl and flat datafiles since it seems to work well enough for a site the size of ANN. |
|
List of all comments to this article (continued) |
|
- User Menu
-
- About ANN archives
- The ANN archives is powered by #AmigaZeux. It was updated daily (news last: 22-Oct-2004; comments last: 18-May-2005).
ANN.lu was created, previously owned and maintained by Christian Kemp, www.ckemp.com.
- Contribute
- Not possible at this time!
- Search ANN archives
- Advanced search
- Hosting
- ANN.lu was hosted by Dreamhost. Sign up through this link, mention "ckemp" as referrer and he will get a 10% commission on any account you purchase.
Please show your appreciation for any past, present and future work on ANN.lu by making a contribution via PayPal.
|