Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Jan 5, 2015
  1. @marcoceppi

    Merge pull request #122 from brownl/loop-over-dir-properly

    marcoceppi authored
    loop over directories "the right way"
Commits on Jan 3, 2015
  1. @brownl

    loop over directories "the right way"

    brownl authored
    See http://php.net/manual/en/function.readdir.php - specifically
    
        /* This is the correct way to loop over the directory. */
        while (false !== ($entry = readdir($handle))) {
            echo "$entry\n";
        }
    
        /* This is the WRONG way to loop over the directory. */
        while ($entry = readdir($handle)) {
            echo "$entry\n";
        }
    
    Looping over a directory the wrong way will cause the loop to stop if it comes to a directory named 0 (or anything else which evaluates to false)
Commits on Apr 23, 2014
  1. @marcoceppi

    Merge pull request #121 from drmalex07/master

    marcoceppi authored
    Provide several modifications on the PredisStore implementation.
Commits on Mar 11, 2014
  1. @drmalex07

    Provide several modifications on the PredisStore implementation.

    drmalex07 authored
     - Fixed some typos
     - Fixed the way an association is retreived from the store (getAssociation()).
       The existing implementation was poping (LPOP) from a list, causing unneeded
       re-associations. If we need to discard stale association handles, i think we
       should rather set the appropriate expiry intervals.
Commits on Feb 13, 2014
  1. @marcoceppi

    Merge pull request #115 from marcoceppi/warn-when-person-is-doing-harm

    marcoceppi authored
    Add warning when you disable SSL, don't be silly please
Commits on Jan 23, 2014
  1. @marcoceppi

    Merge pull request #117 from marcoceppi/xml-sad-face

    marcoceppi authored
    Reject OpenID XML responses with a doctype
  2. @marcoceppi
  3. @marcoceppi

    Clean up

    marcoceppi authored
Commits on Jan 22, 2014
  1. @marcoceppi
Commits on Jan 20, 2014
  1. @marcoceppi

    Merge pull request #113 from thanhhh/master

    marcoceppi authored
    Add Auth_OpenID_DISABLE_SSL_VERIFY opt to disable SSL verify
Commits on Jan 16, 2014
  1. Remove wasted white space for #113

    ThanhHH authored
Commits on Jan 10, 2014
  1. @marcoceppi

    Merge pull request #114 from AdamWill/entity_decode

    marcoceppi authored
    Yadis: drop custom replaceEntities() function and use html_entity_decode
Commits on Jan 9, 2014
  1. Yadis: drop custom replaceEntities() function and use html_entity_decode

    Adam Williamson authored
    Yadis' ParseHTML.php has a replaceEntities() function for replacing HTML
    entities, with a comment that appears to explain its existence by stating
    "Replace numeric entities because html_entity_decode doesn't do it for us".
    This is breaking with PHP 5.5 because it uses the deprecated /e modifier
    for preg_replace() - #108 .
    I think this custom function is no longer needed at least with PHP 5. PHP 5
    has had support for replacing numeric entities since 2003, and its entity
    handling code has been refined quite a lot since then. replaceEntities() has
    been there since 2006, and probably earlier. I guess at that time PHP 4
    compatibility was still important so this was needed - I don't think PHP 4's
    html_entity_decode() has ever had numeric entity support - but now PHP 5 is
    a decade old and there's a separate PHP 4 branch of php-openid, I think we
    can ditch replaceEntities() in the main branch!
  2. @marcoceppi

    Merge pull request #100 from fredden/patch-1

    marcoceppi authored
    Improves open_basedir detection
  3. @marcoceppi

    Merge pull request #111 from stutiredboy/master

    marcoceppi authored
    Update Consumer.php for Auth_OpenID_DumbStore
Commits on Dec 17, 2013
  1. @marcoceppi

    Merge pull request #94 from etienneq/pass-by-reference-fix

    marcoceppi authored
    issue #8 fix (PHP 5.4 call-time pass-by-reference removed)
  2. @stutiredboy

    Update Consumer.php

    stutiredboy authored
    ```
    $this->_use_assocs = (is_null($this->store) ? false : true);
    ```
    always return true, even the store is Auth_OpenID_DumbStore, and do an association with the OpenID Server.
    
    but OpenID Server will reject the check_authentication, if RP have do an association.
Commits on Oct 3, 2013
  1. @marcoceppi

    Merge pull request #109 from chuckpearce/master

    marcoceppi authored
    Changed gist location as the current was returning 404, new Hello World!...
  2. @chuckpearce
Commits on Sep 3, 2013
  1. @marcoceppi

    Merge pull request #105 from vmattila/predis-store

    marcoceppi authored
    Fixed wrong expiration command (expiresat -> expireat)
Commits on Sep 2, 2013
  1. @vmattila
Commits on Aug 25, 2013
  1. @nao-pon

    correction for PHP < 5.2.11

    nao-pon authored
    libxml_disable_entity_loader (PHP 5 >= 5.2.11)
Commits on Aug 17, 2013
  1. @marcoceppi

    Merge pull request #103 from vmattila/predis-store

    marcoceppi authored
    Implemented PredisStore to provide association store for Redis servers.
Commits on Aug 13, 2013
  1. @vmattila
Commits on Aug 12, 2013
  1. @willnorris

    disable external XML entities and libxml errors

    willnorris authored
    thanks to Kousuke Ebihara for the report and patch.
Commits on May 27, 2013
  1. @fredden

    Improves open_basedir detection

    fredden authored
    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$
Commits on May 21, 2013
  1. @marcoceppi

    Merge pull request #99 from DavidMikeSimon/master

    marcoceppi authored
    PEAR and strict mode issues
  2. @DavidMikeSimon
Commits on May 8, 2013
  1. @marcoceppi

    Merge pull request #97 from Jannie/master

    marcoceppi authored
    Pass request data to fix AX. Fixes #54.
  2. @Jannie

    Fixes #54. Pass request data to fix AX.

    Jannie authored
    AX fetch response is created based on AX fetch request data. Need to
    pass the $request to the Auth_OpenID_AX_FetchResponse getExtensionArgs
    method.
Commits on May 6, 2013
  1. @marcoceppi

    Merge pull request #96 from etienneq/zero_filesize_bug

    marcoceppi authored
    Separate file_exists() and filesize() checks to avoid fread and filesize error
  2. @etienneq
Commits on Apr 25, 2013
  1. @marcoceppi

    Merge pull request #95 from DavidMikeSimon/master

    marcoceppi authored
    Added composer support
  2. @DavidMikeSimon

    Added composer.json

    DavidMikeSimon authored
Something went wrong with that request. Please try again.