dudu1982 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Patch for /trunk/examples/batch.php #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using  $_SERVER['HTTP_HOST'] and  $_SERVER['PHP_SELF'] is dangerous as this is 
all user-supplied data. This should be carefully revised not to use 
user-supplied data.

Original issue reported on code.google.com by theanoma...@gmail.com on 27 Jan 2012 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
Hey, I've updated batch.php demonstrate how to use filter_var's 
FILTER_SANITIZE_URL filter. (r351)

Original comment by chirags@google.com on 28 Jan 2012 at 10:10