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 | ||||
* | Clean up reference assignment of objects. | Olav Morken | 2012-10-19 | 4 | -14/+14 |
| | | | | | Since all objects are passed by reference in PHP 5, assigning them by reference does not make sense, and in some cases causes warnings. | ||||
* | 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 | 3 | -18/+18 |
|\ | | | | | | | | | 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 | 2 | -4/+4 |
| | | |||||
| * | fix for short_open_tag = 0 | Chris Buckley | 2011-05-03 | 1 | -14/+14 |
| | | |||||
* | | 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 |
|/ | |||||
* | Made some hardcoded tmp paths dynamic by using sys_get_temp_dir. If function ↵ | Philipp Söhnlein | 2011-01-16 | 1 | -1/+19 |
| | | | | is not available the old mechanisms are used. | ||||
* | Fixed warnings in try_auth.php, consumer.php. Fixed reference to ↵ | long | 2010-07-20 | 3 | -5/+10 |
| | | | | openid-enabled.com in detect.php | ||||
* | 1. Removed assigning by reference new operator result (E_DEPRECATED). | Shein Alexey | 2010-07-20 | 1 | -2/+1 |
| | |||||
* | 1. Added dl() existance checking. | Shein Alexey | 2010-07-20 | 1 | -6/+6 |
| | | | | 2. Fixed a notice with absent $_GET parameter. | ||||
* | Removed/changed references to openidenabled.com. At this time, not every ↵2.2.0 | Lilli | 2010-03-16 | 3 | -15/+4 |
| | | | | reference has been updated. | ||||
* | 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 | 19 | -70/+84 |
| | | | | | | 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 :) | ||||
* | Revert "[ correct errors in removing trailing ?> ]" | Luke Shepard | 2009-05-27 | 6 | -78/+67 |
| | | | | This reverts commit f963a700e4440074a5b86d382789e75795206482. | ||||
* | [ correct errors in removing trailing ?> ] | Luke Shepard | 2009-05-27 | 6 | -67/+78 |
| | | | | | | | | In the last commit, I over-aggressively removed closing PHP tags. While I dislike the practice of using close tags within templates, it is how this library works, so let's put them back. Checked that all PHP compiles with "php -l". | ||||
* | [ remove closing ?> tag from all files ] | Luke Shepard | 2009-05-27 | 19 | -84/+70 |
| | | | | | | | | | | 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 @ Demo server: remove stale HMACSHA1.php include] | Kevin Turner | 2008-07-08 | 1 | -1/+0 |
| | |||||
* | [project @ Make the detect script work with 206 responses from the fetcher] | Kevin Turner | 2008-06-25 | 1 | -3/+4 |
| | |||||
* | [project @ examples/discover: import consumer/common.php to set include_path] | tailor | 2008-06-06 | 1 | -0/+3 |
| | |||||
* | [project @ Add examples/discover.php tool] | tailor | 2008-06-06 | 1 | -0/+97 |
| | |||||
* | [project @ demo RP: indentation] | tailor | 2008-06-06 | 1 | -25/+25 |
| | |||||
* | [project @ demo RP: escape response information prior to output] | tailor | 2008-06-06 | 1 | -10/+21 |
| | |||||
* | [project @ Update license strings to say Apache] | tailor | 2008-05-30 | 1 | -1/+1 |
| | |||||
* | [project @ examples/consumer: Return Consumer object by reference in ↵ | tailor | 2008-05-29 | 1 | -1/+2 |
| | | | | getConsumer()] | ||||
* | [project @ use the htmlMarkup method to get auto-submitting code, instead of ↵ | tailor | 2008-05-27 | 1 | -10/+2 |
| | | | | doing it in the example consumer] | ||||
* | [project @ fix copyright notices to include 2008] | http://mike.glover.myopenid.com | 2008-05-27 | 1 | -1/+1 |
| | |||||
* | [project @ Example server: set response code in action_default] | tailor | 2008-05-20 | 1 | -0/+5 |
| | |||||
* | [project @ Swap XRDS and server urls in identity page code (thanks: ↵ | tailor | 2008-05-20 | 1 | -3/+3 |
| | | | | lulurun@gmail.com)] | ||||
* | [project @ Use PATH_SEPARATOR in detect.php (thanks: ↵ | tailor | 2008-02-19 | 1 | -1/+1 |
| | | | | http://jeroen.hellingman.myopenid.com/)] | ||||
* | [project @ Fix user XRDS] | tailor | 2008-02-04 | 2 | -3/+3 |
| | |||||
* | [project @ Fix IDP XRDS in example server: advertise correct type] | tailor | 2008-02-04 | 1 | -3/+1 |
| | |||||
* | [project @ [FIX #38] Replace direct usage of NO_MATH_SUPPORT with function ↵ | tailor | 2007-11-26 | 1 | -2/+3 |
| | | | | calls] | ||||
* | [project @ Update example RP to use PAPE extension] | tailor | 2007-11-20 | 4 | -0/+62 |
| | |||||
* | [project @ Update example consumer to use getDisplayIdentifier()] | tailor | 2007-11-19 | 1 | -1/+1 |
| | |||||
* | [project @ Correct Sreg response bug in demo server] | tailor | 2007-11-15 | 1 | -1/+1 |
| | |||||
* | [project @ Fix example consumer complete() call] | tailor | 2007-11-13 | 1 | -1/+1 |
| | |||||
* | [project @ Pass return_to to complete() in example consumer] | tailor | 2007-11-13 | 3 | -23/+24 |
| | |||||
* | [project @ Change name of OpenID form field in example consumer] | tailor | 2007-10-02 | 2 | -3/+3 |
| | |||||
* | [project @ Update detect.php script to check SSL support] | tailor | 2007-05-22 | 1 | -5/+25 |
| | |||||
* | [project @ Fix simple registration API to use toMessage()] | tailor | 2007-04-16 | 1 | -2/+10 |
| | |||||
* | [project @ Update examples README] | tailor | 2007-04-06 | 1 | -18/+30 |
| | |||||
* | [project @ Fix idpage generation] | tailor | 2007-04-06 | 1 | -1/+2 |
| | |||||
* | [project @ Use type URI constants in generating XRDS] | tailor | 2007-04-06 | 1 | -2/+8 |
| | |||||
* | [project @ Add user-specific XRDS rendering] | tailor | 2007-04-06 | 3 | -2/+52 |
| | |||||
* | [project @ Add no-cache headers] | tailor | 2007-04-06 | 1 | -0/+3 |
| | |||||
* | [project @ Add no-cache HTTP-Equivs] | tailor | 2007-04-06 | 1 | -0/+2 |
| | |||||
* | [project @ Fix stray index references in setup.php] | tailor | 2007-04-06 | 1 | -9/+9 |
| | |||||
* | [project @ Remove duplicate login_needed_pat in example server] | tailor | 2007-04-06 | 1 | -3/+0 |
| | |||||
* | [project @ Fix and clarify text on login page] | tailor | 2007-04-06 | 1 | -3/+7 |
| | |||||
* | [project @ Fix table creation for sqlitestore in server example] | tailor | 2007-04-06 | 1 | -1/+3 |
| | |||||
* | [project @ Fix 2.0 IDP NS URI] | tailor | 2007-04-05 | 1 | -1/+1 |
| | |||||
* | [project @ Fix short tags in setup.php] | tailor | 2007-04-05 | 1 | -44/+44 |
| | |||||
* | [project @ Add opening and closing PHP tag to example server config] | tailor | 2007-04-05 | 1 | -0/+3 |
| | |||||
* | [project @ Update example server to check HTTPS cleanly] | tailor | 2007-04-05 | 1 | -1/+1 |
| | |||||
* | [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 @ decodeRequest defaults to getting query data implicitly] | tailor | 2007-04-02 | 1 | -2/+1 |
| | |||||
* | [project @ Update example server to use new Sreg API] | tailor | 2007-03-31 | 1 | -0/+17 |
| | |||||
* | [project @ Update example server to use getQuery] | tailor | 2007-03-31 | 1 | -2/+2 |
| | |||||
* | [project @ Updated example consumer to not pass query args directly] | tailor | 2007-03-31 | 1 | -1/+1 |
| | |||||
* | [project @ Update example consumer to use SReg API] | tailor | 2007-03-30 | 3 | -5/+23 |
| | |||||
* | [project @ Example server overhaul; add OpenID 2 features] | tailor | 2007-03-22 | 10 | -235/+103 |
| | |||||
* | [project @ Update example server to accept arbitrary logins (to make it ↵ | tailor | 2007-03-19 | 9 | -118/+62 |
| | | | | easier to use and configure)] | ||||
* | [project @ Fix javascript in example consumer] | tailor | 2007-03-19 | 1 | -1/+1 |
| | |||||
* | [project @ [2/2] Change Services_Yadis_ and Services/Yadis/] | tailor | 2007-03-12 | 1 | -6/+6 |
| | |||||
* | [project @ Comments in example consumer] | tailor | 2007-03-10 | 2 | -4/+18 |
| | |||||
* | [project @ Refactored example consumer] | tailor | 2007-03-10 | 3 | -99/+149 |
| | |||||
* | [project @ Make example consumer send redirect or use form markup] | tailor | 2007-03-06 | 1 | -3/+19 |
| | |||||
* | [project @ API CHANGE: Make Auth_OpenID_extensionResponse::extensionResponse ↵ | tailor | 2007-01-09 | 1 | -1/+1 |
| | | | | take boolean to require extension args to be signed] | ||||
* | [project @ Fix example server: properly initialize SQL stores] | tailor | 2007-04-02 | 1 | -2/+10 |
| | |||||
* | [project @ Fix include_path in example server server.php] | tailor | 2007-03-14 | 1 | -0/+5 |
| | |||||
* | [project @ Fix include_path in example server setup.php] | tailor | 2007-03-14 | 1 | -0/+4 |
| | |||||
* | [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 @ Fix example consumer on Windows] | tailor | 2007-01-16 | 1 | -1/+1 |
| | |||||
* | [project @ Fix example consumer so it works in https mode, too] | tailor | 2006-12-01 | 1 | -2/+7 |
| | |||||
* | [project @ add sreg[email,postcode] support to server,consumer examples] | tailor | 2006-09-08 | 4 | -4/+28 |
| | |||||
* | [project @ Added message to example consumer to show canonical ID for XRI] | tailor | 2006-08-21 | 1 | -0/+5 |
| | |||||
* | [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 @ Updated example consumer to request sreg.email] | tailor | 2006-07-24 | 2 | -0/+7 |
| |