<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 236: parsing of URL vars breaks non-meta &amp; and ?</title><link href="https://sourceforge.net/p/phpcms/bugs/236/" rel="alternate"/><link href="https://sourceforge.net/p/phpcms/bugs/236/feed.atom" rel="self"/><id>https://sourceforge.net/p/phpcms/bugs/236/</id><updated>2006-04-07T21:10:25Z</updated><subtitle>Recent changes to 236: parsing of URL vars breaks non-meta &amp; and ?</subtitle><entry><title>parsing of URL vars breaks non-meta &amp; and ?</title><link href="https://sourceforge.net/p/phpcms/bugs/236/" rel="alternate"/><published>2006-04-07T21:10:25Z</published><updated>2006-04-07T21:10:25Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net898dd79178056f50ac8402e9ff33a22f68bd327e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Class: class.phpcms.php&lt;br /&gt;
Method: prepare_environment_vars&lt;/p&gt;
&lt;p&gt;cf. &lt;a href="http://phpcms.de/forum/index.en.html?topic=6298.0" rel="nofollow"&gt;http://phpcms.de/forum/index.en.html?topic=6298.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The GET parameters are reparsed by the function&lt;br /&gt;
above. By default, &amp;amp; and ? are treated as argument&lt;br /&gt;
separators.This cannot be right, can it? example:&lt;/p&gt;
&lt;p&gt;- phpcms running in stealth mode&lt;br /&gt;
- "how are you?john" is entered in a form, action=GET&lt;br /&gt;
- resulting URL:&lt;br /&gt;
content.htm?msg=how+are+you%3fjohn&lt;br /&gt;
- this is urldecoded by the webserver to&lt;br /&gt;
$_GET: Array (msg=how are you?john)&lt;br /&gt;
- prepare_environment_vars will split this up once more&lt;br /&gt;
into&lt;br /&gt;
$GLOBALS[_GET_POST]: Array (msg=how are you john='')&lt;/p&gt;
&lt;p&gt;I think the problem here is that once the GET arguments&lt;br /&gt;
reach phpcms, "meta" &amp;amp; / ? and "textual" &amp;amp; / ? have&lt;br /&gt;
become undiscernible.&lt;/p&gt;
&lt;p&gt;iok&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>