Topic awaiting preservation: Magic Quotes Issue (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 03-23-2004 22:02
So, I recently discovered that every time I attempt a search containing an apostrophe in my installation of Gallery, the apostrophe gets prefixed with a backslash. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 03-23-2004 22:42
Well I'd just try adding that to the top of the file called search.php |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 03-23-2004 23:02
actually, I feel you're all confused. code: function _g_SecureArray(&$array,$bIsFirstLevel = true)
|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 03-26-2004 01:14
Unfortunately, adding ini_set(magic_quotes_gpc, 0); to search.php did squat. In fact, I tried creating a file with ... code: <?php
|
Maniac (V) Inmate From: under the bed |
posted 03-26-2004 02:07
I beleive the issue lies in here - quote:
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 03-26-2004 09:15
a) magicq quotes for get,post,cookies (or gpc ) happpen before php executes your script. There's nothing you can do about that. |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 03-27-2004 01:39
OK, so I did some searching on stripslashes and I finally came up with a couple of posts from guys who had the same issue of not being able to turn off magic quotes. code: if (get_magic_quotes_gpc()) {
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 03-27-2004 09:28
quote:
code: $var_value = ${$var_name};
|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 03-27-2004 18:31 |