Login Retreive lost passwordRegister
Search

Forum Index / General / Problem with \\ on database fields

[ This topic is solved ]

  Andy 01 March 06 / 16:37  
I have a field in a MySQL database used for storing the path to an application. It is a UNC path, so it starts with \\, for example \\148.56.132.20\share. If I enter this data on the form, and press the save button, then the data is put into the database correctly. However when I run the form again and the form field initialises from the data in the database, the first slash is missing. So with my example, I get \148.56.132.20\share. If I save the data with a single \, then it saves OK. However when I run the form again, I get 8.56.132.20\share. It looks like the data is not being escaped correctly? Any ideas to get round this?

  Teye Heimans (Founder) 02 March 06 / 09:26  
Ai, you are right.. wait a sec.. I will check it out directly...

  Teye Heimans (Founder) 02 March 06 / 09:39  
The problem is sprintf. it parses a string wrong when it begins with slashes? I will try to solve this bug in the afternoon (have to go to school now). Thanks for reporting this bug.

  Teye Heimans (Founder) 02 March 06 / 11:59  
I just solved this bug. If you update the file FH3/includes/class.MaskLoader.php it should work fine again.

  Andy 02 March 06 / 13:14  
Fantastic work! How do I get hold of the file?
Cheers
Andy

  Andy 02 March 06 / 13:16  
Oops - forget my last post!
I see the Latest update: 02-03-2006 / 11:56
on the download page.
Sorry!

  Andy 02 March 06 / 13:18  
And just tested it - works a treat!
Many thanks for the quick fix.

Andy

  Top


powered by PHP-GLOBE   © 2004 - 2024 FormHandler. All rights reserved.   -   Open source license