Changeset 1338

Show
Ignore:
Timestamp:
03/21/08 16:52:53 (8 months ago)
Author:
benoitg
Message:
  • hotspot_status.php: Fix bug in XSLT procesing.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog-auth/CHANGELOG

    r1336 r1338  
    11# $Id$ 
     22008-03-21 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
     3        * hotspot_status.php:  Fix bug in XSLT procesing. 
     4 
    252008-03-15 Benoit GrĂ©goire  <bock@step.polymtl.ca> 
    36        * Content.php:  Eliminate the generation of a large number of useless SQL queries when getting Content metadata. 
  • trunk/wifidog-auth/wifidog/hotspot_status.php

    r1253 r1338  
    8686    if ($format == "XML" && !empty($_REQUEST['xslt'])) { 
    8787        if(Dependency::check("xsl")) {// Load the XSLT 
    88             if($xslt_dom = @DomDocument::load($_REQUEST['xslt']) === false) { 
     88            if(($xslt_dom = @DomDocument::load(trim($_REQUEST['xslt']))) === false) { 
    8989                echo sprintf("Unable to load XSTL : %s", $_REQUEST['xslt']); 
    9090            } 
    9191            else { 
    92                 $xslt_proc = new XsltProcessor(); 
     92                $xslt_proc = new XSLTProcessor(); 
    9393                $xslt_proc->importStyleSheet($xslt_dom); 
    9494