php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun committed 2021-01-04 15:33:29 +09:00
1 parent 10d377de7d
commit 582d1a01f4
852 files changed
+120617 -6307

No files matched your search

+3 -4
View File
@@ -1,8 +1,8 @@
<?php
include_once('./_common.php');
$subject = strip_tags($_POST['subject']);
$content = strip_tags($_POST['content']);
$subject = isset($_POST['subject']) ? strip_tags($_POST['subject']) : '';
$content = isset($_POST['content']) ? strip_tags($_POST['content']) : '';
//$filter = explode(",", strtolower(trim($config['cf_filter'])));
// strtolower 에 의한 한글 변형으로 아래 코드로 대체 (곱슬최씨님이 알려 주셨습니다.)
@@ -27,5 +27,4 @@ for ($i=0; $i<count($filter); $i++) {
}
}
die("{\"subject\":\"$subj\",\"content\":\"$cont\"}");
?>
die("{\"subject\":\"$subj\",\"content\":\"$cont\"}");