diff --git a/adm/faqlist.php b/adm/faqlist.php
index 80319c82f..6f4849bb0 100644
--- a/adm/faqlist.php
+++ b/adm/faqlist.php
@@ -68,15 +68,17 @@ $result = sql_query($sql);
$num = $i + 1;
$bg = 'bg'.($i%2);
+
+ $fa_subject = conv_content($row['fa_subject'], 1);
?>
|
- |
+ |
|
- 수정
- 삭제
+ 수정
+ 삭제
|
diff --git a/lib/Cache/FileCache.class.php b/lib/Cache/FileCache.class.php
index f65948947..529312a5f 100644
--- a/lib/Cache/FileCache.class.php
+++ b/lib/Cache/FileCache.class.php
@@ -67,8 +67,14 @@ class FileCache
{
return FALSE;
}
-
- $data = unserialize(file_get_contents( $cache_file_path ));
+
+ try{
+ $file_contents = file_get_contents($cache_file_path);
+ $file_ex = explode("\n\n", $file_contents);
+ $data = unserialize(base64_decode($file_ex[1]));
+ } catch(Exception $e){
+ $data = array('ttl'=>1, 'time'=>time() - 1000);
+ }
if ($data['ttl'] > 0 && time() > $data['time'] + $data['ttl'])
{
@@ -135,7 +141,10 @@ class FileCache
'data' => $data
);
- if ($this->write_file($cache_file_path, serialize($contents)))
+ $cache_content = "\n\n";
+ $cache_content .= base64_encode(serialize($contents));
+
+ if ($this->write_file($cache_file_path, $cache_content))
{
chmod($cache_file_path, G5_FILE_PERMISSION);
return TRUE;
@@ -167,7 +176,7 @@ class FileCache
if ($ttl !== null) {
$expire = time() + $ttl;
}
- return serialize(array($data, $expire));
+ return base64_encode(serialize(array($data, $expire)));
}
/**
@@ -181,7 +190,7 @@ class FileCache
*/
public function decode($data)
{
- return unserialize($data);
+ return unserialize(base64_decode($data));
}
}
?>
\ No newline at end of file