So, I inherited some really bad code and am currently just trying to refactor it to the point of functionality before completely overhauling it. One of the problems is that the original programmer set posts and sessions like this:
It seems to be causing problems throughout the site. Is there a fast way that I can recursively find and replace these types of variables? They're everywhere and obviously are named different, so I would need to find any variable that does not have the quotes and replace it with the same string that does?