[제나플러스] 카테고리에서 특정 글자로 인해 문제 발생시 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[제나플러스] 카테고리에서 특정 글자로 인해 문제 발생시

페이지 정보

profile_image
작성자 제로
댓글 0건 조회 50,481회 작성일 13-11-08 23:36

본문

/common.php

if (isset($sca))  {
    $sca = mysql_real_escape_string($sca);
    $sca = stripslashes($sca);
    $qstr .= '&sca=' . urlencode($sca);
}

if (isset($sfl))  {
    $sfl = mysql_real_escape_string($sfl);
    // 크롬에서만 실행되는 XSS 취약점 보완
    // 코드 $sfl 변수값에서 < > ' " % = ( ) 공백 문자를 없앤다.
    $sfl = preg_replace("/[\<\>\'\"\%\=\(\)\s]/", "", $sfl);
    //$sfl = preg_replace("/[^\w\,\|]+/", "", $sfl);
    $qstr .= '&sfl=' . urlencode($sfl); // search field (검색 필드)
}

if (isset($stx))  { // search text (검색어)
    $stx = mysql_real_escape_string($stx);
    $stx = stripslashes($stx);
    $qstr .= '&stx=' . urlencode($stx);
}

댓글목록

등록된 댓글이 없습니다.

Total 285건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 날짜
285 제로 54807 11-16
열람중 제로 50482 11-08
283 제로 55796 10-16
282 제로 53871 10-16
281 제로 56073 04-25
280 제로 62225 10-19
279 제로 51645 10-17
278 제로 71166 09-18
277 제로 74412 09-18
276 제로 71160 09-18
275 제로 55060 09-07
274 제로 63662 04-20
273 제로 64060 03-14
272 제로 64226 01-26
271 제로 66453 01-24
270 제로 67478 01-10
269 제로 69836 12-10
268 제로 82354 10-13
267 제로 78960 10-04
266 제로 90266 09-19
265 제로 77219 09-19
264 제로 68489 09-14
263 제로 60268 09-12
262 제로 66391 09-03
261 제로 63014 09-03

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5470-4714
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
1,707
어제
23,988
최대
431,155
전체
11,537,611
Copyright (c) 株式会社YHPLUS. All rights reserved.