Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #100 from fredden/patch-1 | Marco Ceppi | 2014-01-09 | 1 | -1/+1 |
|\ | | | | | Improves open_basedir detection | ||||
| * | Improves open_basedir detection | Dan Wallis | 2013-05-27 | 1 | -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 sandpit | 2013-10-03 | 1 | -1/+1 |
|/ | | | | gist created | ||||
* | Fixing issue #32 : https://github.com/openid/php-openid/issues/32 | Rodrigo Primo | 2012-10-11 | 1 | -1/+5 |
| | |||||
* | Merge pull request #47 from starsquare/master | Will Norris | 2012-01-02 | 1 | -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_mode | Chris Buckley | 2011-05-03 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #59 from staktrace/fix-detect | Will Norris | 2012-01-02 | 1 | -2/+2 |
|\ \ | | | | | | | Fix detect | ||||
| * | | Update the URL used for HTTPFetch testing now that github's behaviour has ↵ | Kartikaya Gupta | 2011-10-02 | 1 | -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 Gupta | 2011-10-02 | 1 | -1/+1 |
| |/ | | | | | | | format the URL doesn't get printed. | ||||
* | | Fix minor spelling error. | Paul Waring | 2011-11-09 | 1 | -1/+1 |
|/ | |||||
* | Fixed warnings in try_auth.php, consumer.php. Fixed reference to ↵ | long | 2010-07-20 | 1 | -2/+2 |
| | | | | openid-enabled.com in detect.php | ||||
* | 1. Added dl() existance checking. | Shein Alexey | 2010-07-20 | 1 | -6/+6 |
| | | | | 2. Fixed a notice with absent $_GET parameter. | ||||
* | Added the following patch from the trac.openidenabled.com ticket #253: | Lilli | 2010-02-10 | 1 | -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 Shepard | 2009-05-27 | 1 | -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 Shepard | 2009-05-27 | 1 | -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 Turner | 2008-06-25 | 1 | -3/+4 |
| | |||||
* | [project @ Use PATH_SEPARATOR in detect.php (thanks: ↵ | tailor | 2008-02-19 | 1 | -1/+1 |
| | | | | http://jeroen.hellingman.myopenid.com/)] | ||||
* | [project @ [FIX #38] Replace direct usage of NO_MATH_SUPPORT with function ↵ | tailor | 2007-11-26 | 1 | -2/+3 |
| | | | | calls] | ||||
* | [project @ Update detect.php script to check SSL support] | tailor | 2007-05-22 | 1 | -5/+25 |
| | |||||
* | [project @ Move math extension data into a function] | tailor | 2007-04-04 | 1 | -2/+1 |
| | |||||
* | [project @ Add bytes and toBytes to avoid multibyte string overloading] | tailor | 2007-04-04 | 1 | -1/+1 |
| | |||||
* | [project @ [2/2] Change Services_Yadis_ and Services/Yadis/] | tailor | 2007-03-12 | 1 | -6/+6 |
| | |||||
* | [project @ Unify php.net links] | tailor | 2007-03-12 | 1 | -1/+1 |
| | |||||
* | [project @ Make it very clear what the result is] | tailor | 2007-03-12 | 1 | -0/+2 |
| | |||||
* | [project @ Whitespace] | tailor | 2007-03-12 | 1 | -1/+3 |
| | |||||
* | [project @ Say CURL isn't required] | tailor | 2007-03-12 | 1 | -3/+3 |
| | |||||
* | [project @ Remove comment] | tailor | 2007-03-12 | 1 | -1/+0 |
| | |||||
* | [project @ Include yadis code and complain if it isn't found] | tailor | 2007-03-12 | 1 | -0/+8 |
| | |||||
* | [project @ Mention absence of open_basedir] | tailor | 2007-03-12 | 1 | -0/+3 |
| | |||||
* | [project @ Boldify web_user] | tailor | 2007-03-12 | 1 | -1/+1 |
| | |||||
* | [project @ Mention file store] | tailor | 2007-03-12 | 1 | -1/+1 |
| | |||||
* | [project @ Boldify text] | tailor | 2007-03-12 | 1 | -0/+1 |
| | |||||
* | [project @ Typo fix] | tailor | 2007-03-12 | 1 | -1/+1 |
| | |||||
* | [project @ Only try to include one file in inclusion test] | tailor | 2007-03-12 | 1 | -3/+2 |
| | |||||
* | [project @ Remove HTML tags from format-agnostic output] | tailor | 2007-03-12 | 1 | -2/+2 |
| | |||||
* | [project @ Moved curl fetcher detection code into Yadis] | tailor | 2006-08-15 | 1 | -2/+2 |
| | |||||
* | [project @ Removed yadis support detection from detect.php] | tailor | 2006-08-11 | 1 | -26/+1 |
| | |||||
* | [project @ Fixed detect.php] | tailor | 2006-08-04 | 1 | -1/+1 |
| | |||||
* | [project @ Updated detect.php] | tailor | 2006-08-04 | 1 | -10/+78 |
| | |||||
* | [project @ Fixed include bug in detect script.] | tailor | 2006-02-14 | 1 | -1/+1 |
| | |||||
* | [project @ Fixed bugs in CURL fetcher and updated detection script.] | tailor | 2006-02-13 | 1 | -2/+5 |
| | |||||
* | [project @ Fixed detect script to use proper getHTTPFetcher call] | tailor | 2006-02-13 | 1 | -2/+2 |
| | |||||
* | [project @ Make the detect script work when the posix extension is not found] | Josh Hoyt | 2006-02-09 | 1 | -2/+7 |
| | |||||
* | [project @ whitespace] | Josh Hoyt | 2006-02-06 | 1 | -1/+1 |
| | |||||
* | [project @ re-work the data storage section] | Josh Hoyt | 2006-02-06 | 1 | -17/+46 |
| | |||||
* | [project @ Add fetcher checking to detect script] | Josh Hoyt | 2006-02-02 | 1 | -1/+63 |
| | |||||
* | [project @ Sniff whether we are running from the command line or via a web ↵ | Josh Hoyt | 2006-02-02 | 1 | -1/+5 |
| | | | | server] | ||||
* | [project @ Add random source checking and rudimentary store checking to the ↵ | Josh Hoyt | 2006-02-02 | 1 | -13/+135 |
| | | | | detect script] | ||||
* | [project @ Added start of PHP diagnostic tool] | Josh Hoyt | 2006-02-01 | 1 | -0/+214 |