Commit Graph
19 Commits
Author SHA1 Message Date
thisgun 0c6ff731f6 관리권한 부여 목록에서 최고관리자 전용 메뉴 제외 2026-06-09 02:26:01 +00:00
thisgun 31ef78e916 [perf]strstr() 불린 검사를 strpos() !== false 로 교체
strstr()은 일치하는 부분 문자열 전체를 반환하므로 존재 여부만 체크할
때는 메모리 할당이 낭비됨. strpos()는 위치(int) 또는 false만 반환하여
메모리 할당 없이 더 빠르게 동일 동작 수행.

적용 파일 (19개, 약 25곳):
- lib/common.lib.php: wr_option html1/html2/secret 검사 3곳
- lib/shop.lib.php: de_taxsave_types 검사 2곳
- lib/latest.lib.php: wr_option secret 검사 1곳
- lib/thumbnail.lib.php: wr_option secret 검사 1곳
- lib/URI/uri.class.php: URI 확장자 검사 1곳
- bbs/view.php: subject/wr_option/content 검사 4곳
- bbs/view_comment.php: wr_option secret 검사 1곳
- bbs/search.php: wr_option/sfl 검사 3곳
- bbs/rss.php: wr_option html 검사 1곳
- bbs/write_update.php: html1/html2 검사 2곳
- bbs/move_update.php: wr_option html 검사 1곳
- adm/admin.lib.php: auth 권한 검사 1곳
- adm/admin.head.php: 메뉴 권한 검사 1곳
- adm/session_file_delete.php: sess_ prefix 검사 1곳
- adm/point_list.php, adm/auth_list.php: sfl mb_id 검사 2곳
- adm/sms_admin/_common.php: install.php 검사 1곳
- adm/shop_admin/configform.php: de_taxsave_types 검사 3곳
- head.sub.php: admin dir 검사 1곳

규칙:
  strstr($a, $b)       → strpos($a, $b) !== false
  !strstr($a, $b)      → strpos($a, $b) === false

제외:
- theme/, skin/, plugin/ (사용자 커스터마이징/서드파티)
- strstr() 반환값을 실제로 사용하는 케이스 (예: lib/common.lib.php:4135
  if( \$freg = strstr(\$ori_params, '#') ), extend/gif2mp4.extend.php)
2026-04-16 02:29:32 +00:00
thisgun 82574fd4a8 [KVE-2026-0570]그누보드,영카트 SQL Injection 취약점 수정 2026-03-30 12:01:44 +00:00
kjh b1640d7b76 Checked PSR-1: Basic Coding Standard 2022-05-27 09:20:20 +00:00
thisgun 27e9af5e42 php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용 2021-01-04 15:39:15 +09:00
thisgun 6da105bd64 [KVE-2020-0288,0319,0320]그누보드 다중 취약점 수정 2020-06-04 15:13:20 +09:00
thisgun f7ac06d7d4 5.3 버전 내용 적용 2018-03-30 17:40:37 +09:00
chicpro 32d09cff7d 관리자 CSRF 취약점 수정 2015-11-23 18:22:10 +09:00
chicpro 808ac0f0e6 PHP_SELF 를 SCRIPT_NAME 으로 변경 2015-06-24 17:02:29 +09:00
chicpro 7320b911d6 관리권한에서 삭제된 회원관련 권한 설정 삭제 코드 추가 2014-06-09 11:03:20 +09:00
whitedot 13cdf776f5 관리자: input select label 중심 마크업 정리 2014-04-02 10:54:19 +09:00
chicpro e61c402067 관리자 코드 체크 및 정리 2014-03-26 15:43:55 +09:00
whitedot a66d998810 공통: 용어 일반화, 패스워드 -> 비밀번호, 별명 -> 닉네임, 로빈아빠(xhost)님 건의 2014-01-20 10:09:14 +09:00
whitedot 30d133e4ff 관리자: empty_data > empty_table 복원 2013-11-25 16:03:49 +09:00
whitedot 2c6931107f 관리자: 쇼핑몰현황 작업 중 empty_table -> empty_data 로 수정 2013-11-25 15:54:47 +09:00
whitedot d4ad2cbe37 관리자: 목록 홀짝 배경색 클래스명 수정 2013-11-25 15:12:18 +09:00
chicpro fee3813b50 리스트 tr_bg 클래스 처리 코드 간소화 2013-11-07 10:30:48 +09:00
whitedot cfd8db6b9e 관리자: 가변형으로 변경 2013-10-14 14:48:05 +09:00
gnuboard 41d21074b5 그누보드5 2013-09-13 11:03:33 +09:00