Author Topic: config file double quoted string bug  (Read 9340 times)

0 Members and 1 Guest are viewing this topic.

Offline doonfrs

  • Pre-Newbie
  • Posts: 1
    • View Profile
config file double quoted string bug
« on: September 13, 2009, 05:36:12 AM »
Hi
My name is firas abd alrahman
I used 4images , and it's really the best images gallery script 
. . . .


while installing script i found this problem

my database user password was "xx$x123"

in config file you will have
$db_password = "xx$x123"

but the result will be
$db_password => xx123

this caused an error , (4images return "unexpected error" , it's not easy to know the error reason directly )

because the double quoted string will escapes variables values

the fix is simple
by using single quoted string in config file
$db_password ='xx$x123'


thanx

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: config file double quoted string bug
« Reply #1 on: September 13, 2009, 07:07:35 AM »
Hello and welcome to 4images forum.

Thank you for reporting this bug. I've added into "todo" list for next 4images version.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)