Plugin Directory

Changeset 570803


Ignore:
Timestamp:
07/11/2012 06:40:05 PM (14 years ago)
Author:
AdamBackstrom
Message:

XML Content-Type, and filter the response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wpcas-server/trunk/wpcas-server.php

    r456140 r570803  
    147147     */
    148148    public function serviceValidate() {
     149        $auth_value = false;
     150
     151        header( 'Content-Type: text/xml' );
     152
    149153        $response = '<cas:serviceResponse xmlns:cas="'.get_bloginfo('url').'/cas">'."\n";
    150154
     
    159163        }//end else
    160164        $response .= '</cas:serviceResponse>';
     165
     166        apply_filters( 'wpcas_server_auth_response', $response, $auth_value );
    161167 
    162168        die( $response );
Note: See TracChangeset for help on using the changeset viewer.