Barfs on properties with certain characters

Jump to: navigation, search
   $query=preg_replace('/(?<!\\\\)\\(/','[',$query);
   $query=preg_replace('/(?<!\\\\)\\)/',']',$query);
   $query=preg_replace('/\\\\\\(/','(',$query);
   $query=preg_replace('/\\\\\\)/',')',$query);

For anyone who faces a similar problem, these lines should replace the lines at ~97 and 98 that look like this:

   $query=str_replace("(", "[", $query);
   $query=str_replace(")", "]", $query);

This will enable you to use backslashes ('\') to escape your parentheses.

76.107.76.9603:02, 11 May 2012