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

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

팁앤테크

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

페이지 정보

profile_image
작성자 제로
댓글 0건 조회 47,100회 작성일 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 829건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 날짜
829 제로 880 06-18
828 제로 3612 03-21
827 제로 3943 02-23
826 제로 30461 11-02
825 제로 33692 07-10
824 제로 43227 04-06
823 제로 31390 02-21
822 제로 36617 12-31
821 제로 30522 12-24
820 제로 30334 12-04
819 제로 32985 10-17
818 제로 31848 10-02
817 제로 56206 08-04
816 제로 30264 08-04
815 제로 40807 08-03
814 제로 41241 07-08
813 제로 70448 07-08
812 제로 85093 07-06
811 제로 31592 06-09
810 제로 37203 06-03
809 제로 35602 04-16
808 제로 36158 03-29
807 제로 30561 03-26
806 제로 37742 03-12
805 제로 32699 03-10

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
7,605
어제
30,569
최대
431,155
전체
7,161,481
Copyright (c) 株式会社YHPLUS. All rights reserved.