summaryrefslogtreecommitdiffstats
path: root/examples/detect.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #100 from fredden/patch-1Marco Ceppi2014-01-091-1/+1
|\ | | | | Improves open_basedir detection
| * Improves open_basedir detectionDan Wallis2013-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fredden@gordo:/tmp/php-openid/examples$ php detect.php | grep -C1 basedir If you are using a filesystem-based store or SQLite, be aware that open_basedir <http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir> is in effect. This means that your data will have to be stored in one of the fredden@gordo:/tmp/php-openid/examples$ php -i | grep basedir open_basedir => no value => no value fredden@gordo:/tmp/php-openid/examples$ vi detect.php fredden@gordo:/tmp/php-openid/examples$ php detect.php | grep basedir The *open_basedir* configuration restriction is not in effect. fredden@gordo:/tmp/php-openid/examples$ git diff detect.php diff --git a/examples/detect.php b/examples/detect.php index 9c59db3..90e3995 100644 --- a/examples/detect.php +++ b/examples/detect.php @@ -352,7 +352,7 @@ function detect_stores($r, &$out) } $basedir_str = ini_get('open_basedir'); - if (gettype($basedir_str) == 'string') { + if (gettype($basedir_str) == 'string' && $basedir_str) { $url = 'http://www.php.net/manual/en/features.safe-mode.php' . '#ini.open-basedir'; $lnk = $r->link($url, 'open_basedir'); fredden@gordo:/tmp/php-openid/examples$
* | Changed gist location as the current was returning 404, new Hello World! ↵editing on sandpit2013-10-031-1/+1
|/ | | | gist created
* Fixing issue #32 : https://github.com/openid/php-openid/issues/32Rodrigo Primo2012-10-111-1/+5
|
* Merge pull request #47 from starsquare/masterWill Norris2012-01-021-1/+1
|\ | | | | | | | | Fix for all dl() cases and short_open_tag I'm pretty sure we should remove the dl() calls entirely, since it is not longer present in PHP 5.3, but going ahead and merging this as-is for now.
| * fix for rest of dl() calls, also avoid ini_set() as may not work on safe_modeChris Buckley2011-05-031-1/+1
| |
* | Merge pull request #59 from staktrace/fix-detectWill Norris2012-01-021-2/+2
|\ \ | | | | | | Fix detect
| * | Update the URL used for HTTPFetch testing now that github's behaviour has ↵Kartikaya Gupta2011-10-021-1/+1
| | | | | | | | | | | | changed and they do some redirects. This makes the test pass again
| * | Remove angle brackets from around a URL, since if the output is in text/html ↵Kartikaya Gupta2011-10-021-1/+1
| |/ | | | | | | format the URL doesn't get printed.
* | Fix minor spelling error.Paul Waring2011-11-091-1/+1
|/
* Fixed warnings in try_auth.php, consumer.php. Fixed reference to ↵long2010-07-201-2/+2
| | | | openid-enabled.com in detect.php
* 1. Added dl() existance checking.Shein Alexey2010-07-201-6/+6
| | | | 2. Fixed a notice with absent $_GET parameter.
* Added the following patch from the trac.openidenabled.com ticket #253:Lilli2010-02-101-3/+22
| | | | | | | | | | | | | | | | | | | http://trac.openidenabled.com/trac/attachment/ticket/253/detect.patch.txt Original Message: Opened 2 years ago Reported by: http://openid.jamus.com/ detect.php - Detect "corruption" of query string by mod_encoding "The mod_encoding module "corrupts" the query string by translating %xx in the query sring to the character representation. For example, for the URL http://foo.com?a=a%26b, the QUERY_STRING should be a=a%26b, but with mod_encoding enabled, QUERY_STRING is a=a&b. This corruption prevents the library from working correctly. Attached is a simple patch to detect.php to detect this. I hope to save somebody else time tracking this down. mod_encoding was enabled by my webhost (dreamhost.com) when I enabled web_dav for the domain." All hunks were applied successfully.
* Revert "[ remove closing ?> tag from all files ]"Luke Shepard2009-05-271-1/+1
| | | | | | This reverts commit a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0. I'm going to stop playing in bce's fork, and start messing in my own. Sorry for the mess Brian :)
* [ remove closing ?> tag from all files ]Luke Shepard2009-05-271-1/+1
| | | | | | | | | | Reviewed By: Will Norris Facebook has a policy to not have closing ?> tags at the bottom of PHP files. It can unintentionally introduce newlines which causes ridiculous bugs. This is recommended in the Zend style guide: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html
* [project @ Make the detect script work with 206 responses from the fetcher]Kevin Turner2008-06-251-3/+4
|
* [project @ Use PATH_SEPARATOR in detect.php (thanks: ↵tailor2008-02-191-1/+1
| | | | http://jeroen.hellingman.myopenid.com/)]
* [project @ [FIX #38] Replace direct usage of NO_MATH_SUPPORT with function ↵tailor2007-11-261-2/+3
| | | | calls]
* [project @ Update detect.php script to check SSL support]tailor2007-05-221-5/+25
|
* [project @ Move math extension data into a function]tailor2007-04-041-2/+1
|
* [project @ Add bytes and toBytes to avoid multibyte string overloading]tailor2007-04-041-1/+1
|
* [project @ [2/2] Change Services_Yadis_ and Services/Yadis/]tailor2007-03-121-6/+6
|
* [project @ Unify php.net links]tailor2007-03-121-1/+1
|
* [project @ Make it very clear what the result is]tailor2007-03-121-0/+2
|
* [project @ Whitespace]tailor2007-03-121-1/+3
|
* [project @ Say CURL isn't required]tailor2007-03-121-3/+3
|
* [project @ Remove comment]tailor2007-03-121-1/+0
|
* [project @ Include yadis code and complain if it isn't found]tailor2007-03-121-0/+8
|
* [project @ Mention absence of open_basedir]tailor2007-03-121-0/+3
|
* [project @ Boldify web_user]tailor2007-03-121-1/+1
|
* [project @ Mention file store]tailor2007-03-121-1/+1
|
* [project @ Boldify text]tailor2007-03-121-0/+1
|
* [project @ Typo fix]tailor2007-03-121-1/+1
|
* [project @ Only try to include one file in inclusion test]tailor2007-03-121-3/+2
|
* [project @ Remove HTML tags from format-agnostic output]tailor2007-03-121-2/+2
|
* [project @ Moved curl fetcher detection code into Yadis]tailor2006-08-151-2/+2
|
* [project @ Removed yadis support detection from detect.php]tailor2006-08-111-26/+1
|
* [project @ Fixed detect.php]tailor2006-08-041-1/+1
|
* [project @ Updated detect.php]tailor2006-08-041-10/+78
|
* [project @ Fixed include bug in detect script.]tailor2006-02-141-1/+1
|
* [project @ Fixed bugs in CURL fetcher and updated detection script.]tailor2006-02-131-2/+5
|
* [project @ Fixed detect script to use proper getHTTPFetcher call]tailor2006-02-131-2/+2
|
* [project @ Make the detect script work when the posix extension is not found]Josh Hoyt2006-02-091-2/+7
|
* [project @ whitespace]Josh Hoyt2006-02-061-1/+1
|
* [project @ re-work the data storage section]Josh Hoyt2006-02-061-17/+46
|
* [project @ Add fetcher checking to detect script]Josh Hoyt2006-02-021-1/+63
|
* [project @ Sniff whether we are running from the command line or via a web ↵Josh Hoyt2006-02-021-1/+5
| | | | server]
* [project @ Add random source checking and rudimentary store checking to the ↵Josh Hoyt2006-02-021-13/+135
| | | | detect script]
* [project @ Added start of PHP diagnostic tool]Josh Hoyt2006-02-011-0/+214