Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Bug Fix for Validation for User.inc.php

Quote Reply
Bug Fix for Validation for User.inc.php
I just got a report of a bug in the validation code for the PHP front end. An easy fix:
In admin/Links/PHP/User.inc.php, line ~189:
Original code:
Code:
$code = preg_replace('/^\s*|\s*$/', $code);
Fixed code:
Code:
$code = preg_replace('/^\s*|\s*$/', '', $code);

Now your users can get validated with the PHP front end Smile. Sorry about that.

Adrian
Quote Reply
Re: [brewt] Bug Fix for Validation for User.inc.php In reply to
...and people actually prefer php to perl? Smile

Last edited by:

RedRum: Feb 13, 2002, 1:36 AM
Quote Reply
Re: [RedRum] Bug Fix for Validation for User.inc.php In reply to
... yes they do Tongue
Cheers,
Michael Bray
Quote Reply
Re: [RedRum] Bug Fix for Validation for User.inc.php In reply to
Indeed we do Wink

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [brewt] Bug Fix for Validation for User.inc.php In reply to
THANK YOU !

I was having a friend test this validation out for the first time and he got this error, I about flipped out. Gotta love these forums Tongue