Hi,
Its hard to know. Could it be UTF8 that is breaking?
This converts URL encoded values (%20 for space), into proper values.
Not sure what you mean?
What is $query? A CGI.pm object? Or a GT specific one? You really shouldn't have to be doing decoding of strings from the POST/GET values
Cheers
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!
Its hard to know. Could it be UTF8 that is breaking?
Code:
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;This converts URL encoded values (%20 for space), into proper values.
Quote:
edit: i tried it but it still let me enter 5 consecutive nonbreaking spaces & n b s p ;Not sure what you mean?
What is $query? A CGI.pm object? Or a GT specific one? You really shouldn't have to be doing decoding of strings from the POST/GET values
Cheers
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!