Skip to content

Commit d250811

Browse files
committed
Fix Eval Tag Problem.
Beta Version
1 parent b37a878 commit d250811

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
data/
22
config/
3+
install/

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ This is a a PHP7 Port of Discuz! X3.2, based on Discuz X3.2 UTF-8 20150609.
1010

1111
###Notice
1212

13-
There are still some bugs remaining to fix.
13+
Maybe there are still some bugs remaining to fix.
1414

1515
###Known Bugs
1616

17-
- Template Engine's Eval tags seem to work abnormally. (seems like preg_replace with e modifier has addslashes but preg_replace_callback one doesn't to do)
17+
- None
1818

1919
###Other
2020

source/class/class_template.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ function avatartags($parameter) {
211211
}
212212

213213
function evaltags($php) {
214-
$php = str_replace('\"', '"', $php);
215214
$i = count($this->replacecode['search']);
216215
$this->replacecode['search'][$i] = $search = "<!--EVAL_TAG_$i-->";
217216
$this->replacecode['replace'][$i] = "<? $php?>";
@@ -294,7 +293,6 @@ function cssvtags($param, $content) {
294293
function transamp($str) {
295294
$str = str_replace('&', '&amp;', $str);
296295
$str = str_replace('&amp;amp;', '&amp;', $str);
297-
$str = str_replace('\"', '"', $str);
298296
return $str;
299297
}
300298

@@ -337,4 +335,4 @@ function error($message, $tplname) {
337335

338336
}
339337

340-
?>
338+
?>

0 commit comments

Comments
 (0)