Changeset 68

Show
Ignore:
Timestamp:
06/12/07 22:12:14 (2 years ago)
Author:
pdingle
Message:

added addslashes to the return of the error statement in infocard-post-claims.php so that apostrophes do not break the audit sql storage. Also fixed an old call to InfocardUtils? from audit.pw.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-infocard/pw-config.php

    r66 r68  
    88define ('PW_PLUGINPATH', '/wp-content/plugins/wp-infocard'); 
    99define ('PW_SELECTORTRIGGER', 'xhtml' ); 
    10 define ('PW_MANAGEDONLY', false ); 
     10define ('PW_MANAGEDONLY', true ); 
    1111define ('PW_VERSION', 'b2'); 
    1212define ('PW_VERSION_DATE', '17May07'); 
  • trunk/wp-infocard/pwlib/processing/infocard-post-get-claims.php

    r42 r68  
    312312         if (strcmp($locallyCalculatedDigest, $digestValue) != 0) 
    313313        { 
    314             $error = "SignedInfo digest ($digestValue) doesn't match calculated digest ($locallyCalculatedDigest)"; 
     314            $error = "SignedInfo digest ($digestValue) does not match calculated digest ($locallyCalculatedDigest)"; 
    315315            break; 
    316316        } 
     
    464464        openssl_free_key($publicKeyHandle); 
    465465 
    466     return ($error); 
     466    return addslashes($error); 
    467467} 
    468468 
  • trunk/wp-infocard/wp/audit.pw.php

    r41 r68  
    33 
    44include_once( dirname(__FILE__) . '/../pw-config.php' ); 
     5include_once( dirname(__FILE__) . '/../utils.pw.php' ); 
    56//include_once( dirname(__FILE__) . '/../pwlib/audit.pwlib.php'); 
    67 
     
    2829                if ( $update_result == FALSE ) 
    2930                { 
    30                         InfocardUtils::printDebug("Error ".mysql_errno($update_result)."with mysql_query update (".mysql_error($update_result).")<br/>"); 
     31                        pw_utils::printDebug("Error ".mysql_errno($update_result)."with mysql_query update (".mysql_error($update_result).")<br/>"); 
    3132                } 
    3233