mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#242 addslashes()로 변경.
This commit is contained in:
parent
0942fb322d
commit
4ff445aecb
1 changed files with 2 additions and 2 deletions
4
classes/cache/CacheFile.class.php
vendored
4
classes/cache/CacheFile.class.php
vendored
|
|
@ -76,7 +76,7 @@ class CacheFile extends CacheBase
|
|||
$content = array();
|
||||
$content[] = '<?php';
|
||||
$content[] = 'if(!defined(\'__XE__\')) { exit(); }';
|
||||
$content[] = 'return \'' . base64_encode(serialize($obj)) . '\';';
|
||||
$content[] = 'return \'' . addslashes(serialize($obj)) . '\';';
|
||||
FileHandler::writeFile($cache_file, implode(PHP_EOL, $content));
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ class CacheFile extends CacheBase
|
|||
return false;
|
||||
}
|
||||
|
||||
return unserialize(base64_decode($content));
|
||||
return unserialize(stripslashes($content));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue