PHP and \' [SOLVED] (changing wrong code)
#4
@MrD.: I don\'t use stripslashes because it also removes the \ from \" which wreaks havoc when the user does eval("\$blah = \"" . $template->get("foobar") . "\";"); due to php variables (like {$title}) in the templates. It\'s the way MyBB does it, too.

@Tabbie: Wouldn\'t using $this->cache['$template'] look for an index named "$template"? I\'m looking for the index called whatever $template contains. Also, I\'ve tried using double quotes for the find and replace parameters, but I\'ll try it again.

EDIT: /facepalm. I just realized that I was editing the code that affected the templates, but what I really wanted was the code that affected something else. I've fixed it now and no longer have the \' problem.
[Image: LogoO.png]
Reply


Messages In This Thread
RE: PHP and \' - by Aincalandorn - 2009-08-30, 10:58 PM
RE: PHP and \' - by MrD. - 2009-08-30, 11:18 PM
RE: PHP and \' - by Firestryke31 - 2009-08-31, 02:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)