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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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