Browse Source

use realpath() to avoid is_file() notices

Adar Porat 12 years ago
parent
commit
6c7d31af44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Filter/Encrypt/Openssl.php

+ 1 - 1
library/Zend/Filter/Encrypt/Openssl.php

@@ -128,7 +128,7 @@ class Zend_Filter_Encrypt_Openssl implements Zend_Filter_Encrypt_Interface
         }
 
         foreach ($keys as $type => $key) {
-            if (is_file($key) and is_readable($key)) {
+            if (is_file(realpath($key)) and is_readable($key)) {
                 $file = fopen($key, 'r');
                 $cert = fread($file, 8192);
                 fclose($file);