Skip to content

parse_str in breaks Snippets containing ampersands (&) #22

criography opened this Issue Apr 20, 2013 · 0 comments

2 participants


Assume Snippet being: I love {subject} and $subject = 'Foo&Bar';.

Now if I call it like below, it will only return Foo

  echo PostSnippets::getSnippet('I love', 'subject=' .$subject );

It's caused by parse_str treating everything after & as a new variable.
Perhaps allow arrays as argument holders?

@artstorm artstorm was assigned Jun 1, 2013
@artstorm artstorm closed this in db0d5d1 Jun 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.