Skip to content
Permalink
Browse files

게시판 검색시 필드 소문자로 변경

  • Loading branch information...
thisgun committed May 19, 2017
1 parent 8a276fc commit 92b8ce3a8979689d7ff57583960f3dccd31d87f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/common.lib.php
@@ -628,7 +628,7 @@ function get_sql_search($search_ca_name, $search_field, $search_text, $search_op
// SQL Injection 방지
// 필드값에 a-z A-Z 0-9 _ , | 이외의 값이 있다면 검색필드를 wr_subject 로 설정한다.
$field[$k] = preg_match("/^[\w\,\|]+$/", $field[$k]) ? $field[$k] : "wr_subject";
$field[$k] = preg_match("/^[\w\,\|]+$/", $field[$k]) ? strtolower($field[$k]) : "wr_subject";
$str .= $op2;
switch ($field[$k]) {

0 comments on commit 92b8ce3

Please sign in to comment.
You can’t perform that action at this time.