~dlh/ladle/tournament-authority-generator

« back to all changes in this revision

Viewing changes to app/armaauth.php

  • Committer: Daniel Lee Harple
  • Date: 2013-05-02 20:56:33 UTC
  • Revision ID: leeharple@gmail.com-20130502205633-djla6ejwsch96auo
Fixed bug introduced in revision 40.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
        $user = $components[0];
25
25
        $authority = $components[1];
 
26
        $raw_authority = $components[2];
26
27
 
27
28
        $authority_response = self::fetch_authority_response($user, $authority, $message);
28
29
        $expect_exact_resonse = strpos($raw_authority, "/");
74
75
        if (empty($authority) || preg_match("/[^a-zA-Z0-9.-]/", $authority))
75
76
            return FALSE;
76
77
 
77
 
        return array($user, $authority);
 
78
        return array($user, $authority, $raw_authority);
78
79
    }
79
80
 
80
81
    private static function find_authority_basename($authority) {