php escaping when I don't need it to -
I have found an issue through which PHP is running where I really do not want to be in this code:
$ url_ = stripslashes ((substr (strtolower ($ url), 0,7)! = "Http: //") "http: //". $ Url: $ url); $ Host = $ this- & gt; GoogleDomains [mt_rand (0, calculations ($ this-> googleDomains) -1);; $ Target = "/ search?"; $ Querystring = sprintf ("client = navclient-auto & amp; ch =% s & amp; attributes = rank & amp; q =% s", $ this- & gt; checkout ($ this- & gt; hash URL ($ Url _)), urlencode ("info:" $ url_)); $ Content = ""; $ This- & gt; Debugs ("host", host $); $ This- & gt; Debugs ("query_string", $ querystring); $ This- & gt; Debugs ("user_agent", $ this-> user agent);
This generates a URL which causes the script to fail:
{"urls": [{"url": "hostcule. Com "," converted_url ":" http: \ / \ / toolbarqueries.google.com \ search ?? client = navclient- auto in & amp; ch = 74451333464 & features = rank & amp; q = info% 3Ahttp % 3A% 2F% 2Fhostcule.com "}]}
How do I stop it?
Magic quotes are off.
Here comes with $ url:
foreach (preg_split ('# [\ r \ n] + #', $ _POST ['urls']) $ url As) {$ url = trim ($ url); $ (URL) $ _SESSION ['converted_wurl'] [] = array ('url' = & gt; $ url, 'converted_url' = & gt; $ pr- & gt; GetPR ($ url, true, true)) ; }
At this level, $ _POST ['urls'] looks like this:
{"urls": [{"url": "hostcule Com "," converted_url ":" http: \ / \ www.google.com \ search ?? customer = navclient- auto at & amp; ch = 74451333464 & features = rank & amp; q = info% 3Ahttp % 3A% 2F% 2Fhostcule.com}}}}
When the $ url appears
{"urls": [{"url": " Hostcule.com "," converted_range ":" http: \ / www.google.com \ search / client = navclient- auto in & amp; ch = 74451333464 & features = rank & q = info % 3Ahttp% 3A% 2F% 2Fhostcule.com "}]}
in that code Nothing is your reason Ryan will produce the code.
My suspicion is that $ url
is already deformed http \ / \ /
, and therefore your http: // identification process is never Does not start.
You need to retreat and see where $ url
comes from where your problem will be.
Comments
Post a Comment