Disallowed key characters 해결 방법

네이플    0

Disallowed key characters 해결 방법

Disallowed Key Characters.

즐겨찾기로 웹페이지 접속할때 뜨는 문구입니다

혹시 증상 해결 방법 아시는분 계신가요?

2017년 7월 8일 작성됨

공유하기


링크 복사
다른 사이트에 공유하기

연구덕후    0

Disallowed key characters 해결 방법

@네이플님 안녕하세요,

웨일에서 영어로된 경고문구를 내보내고 있지 않은데요,

어느 사이트에서 저런 증상이 나타나는지와

캡쳐 이미지를 올려주실 수 있을까요?

2017년 7월 10일 작성됨

공유하기


링크 복사
다른 사이트에 공유하기

현재 웹팀에서 API문서가 나와 테스트하고 있는데

첫번째 통신부터 이런 값을 리턴해줍니다..

다른곳에서 잘쓰던 POST통신 로직 고대로 가져와서

URL만 변경해서 넣어주었는데 위와같은 값을 리턴해주네요.

웹팀에서도 이유를 모르겠다는데

지금 안드로이드쪽 로직은 아무리봐도 문제가 없는거 같은데..

도대체 뭐가 원인일까요?

URL형태는 이렇습니다.

http://xxx.co.kr/setting/versionInfo?mode=android&version=0.1

구글링해도 잘 나오질 않는거 같습니다.

조언 부탁드립니다.

When I try to search something on the library website, I get a blank screen with the words "Disallowed Key Characters"

Resolution

We believe we have fixed the issue that caused the error message of "disallowed key characters" to appear when searching from the library homepage.

If you see this error again

Clear your browser cookies and try to search again.  Alternatively, open a private/incognito window and resume searching.

If clearing the browser cookies does not resolve the issue, help us troubleshoot by sending an email to utl-catalogue(at)library.utoronto.ca with as much of the following information as you can:

  • The exact search words you used
  • Which page you started from
  • The URL of the page giving you the error
  • Your browser's version
  • A screenshot of the page
  • Your on or off campus status

If you're stuck, try searching the library catalogue directly or an individual database instead of our main search.  We can help you find the best alternative for your specific research needs.

Can't find what you're looking for?  Contact us.

# 웹페이지 접속 시 코드이그나이터 Disallowed Key Characters. 에러가 뜨는 경우 #

[root@localhost common]# vi /var/www/html/CodeIgniter/system/libraries/Input.php

 217         //if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))

위 내용을 주석처리 하고 아래 처럼 작성 하면 된다.

 218           if ( ! preg_match("/^[a-z0-9:_\/-]+$|/i", $str))


Posted 2016/03/14 16:21 Filed under 프로그래밍/PHP

PHP버전을 5.6.11로 업그레이드를 했더니 Disallowed Key Characters. 오류가 난다.
해결 방법은...

1. system/core/input.php 을 연다.
2. function _clean_input_keys($str) 을 찾는다.
3. 수정한다.

 if ( ! preg_match("/^[a-z0-9:_\/-]+$|/i", $str))
 {
 exit('Disallowed Key Characters.'. $str);
 }

추가로...
Common.php 257번째줄에 notice가 나오면 수정

 $_config[0] =& $config;
 return $_config[0];

ResponseYou can track responses via RSS / ATOM feed
Disallowed key characters 해결 방법
  • No Trackback
  • A comment
Trackback URL이 글에는 트랙백을 보낼 수 없습니다Trackback ATOM Feedhttps://blog.miyu.pe.kr/atom/trackback/865

정상적으로 작동하다가 Disallowed Key Characters. 에러가 발생

검색해 보니 여러 이유가 있는듯 했음...

system - core - Input.php 파일을 수정하여 해결

function _clean_input_keys($str) 를 검색하여

preg_match("/^[a-z0-9:_\/-]+$/i", $str))   부분에 | 추가

preg_match("/^[a-z0-9:_\/-]+$|/i", $str))

CI 묻고 답하기

제목이게 무슨 문제인지 원인을 알수없어서 질문드립니다.
글쓴이 해행행 작성시각2016/05/04 15:44:57

댓글 : 4 추천 : 0 스크랩 : 0 조회수 : 10699  

현재 개발중인 싸이트 첫페이지 띄우면 (서버에 올린상태로)

Disallowed Key Characters.abc_aaa_kr@chat_onnet21_com

라고 에러가 뜹니다.

쿠키를 지우게되면 멀쩡하게 잘돌아가구요. 

잘될때도 있고 안될떄도 있는데 정확하게 원인이 무엇인지 몰라서 이렇게 여쭤봅니다.

질문이 부족하면 부족한점말씀해주시면 수정 하겠습니다.

귀한시간 내어주셔 글읽어주셔서 감사합니다.

 다음글 디비 접속 끊기 문의
 이전글 코드이그나이터 2.x 용 hmvc있을까요?

목록

댓글

kaido/ 2016/05/04 16:41:33/ 추천 0

application/config.php 파일 여시고

$config['permitted_uri_chars'] = '가-힣 a-z 0-9~%.:_\-'; //한글 부분 추가

이렇게 수정

변종원(웅파) / 2016/05/04 16:43:02 / 추천 0

abc_aaa_kr@chat_onnet21_com <- 주소에 @ 들어가서 그런거 아닐까요?

해행행 / 2016/05/04 18:05:18 / 추천 0

//kaido

반영하고 테스트해보겠습니다 

감사합니다.

//변종원(웅파)

말씀하신 주소가 무엇을 말하는지 잘모르겠습니다.

해행행 / 2016/05/09 17:20:59 / 추천 0

//kaido , 변종원(웅파)

연동되있는 관리자페이지 로그인 id가 쿠키로남아 사용자페이지에서도 저런 문제가 생긴거같습니다.

그래서 해결방법이 몇가지나왔는데 현재는 임시방편으로 로그인 id를 이메일형식에서 특수문자가 없는 형식으로 바꿔주었습니다.

좀더 알아보고 쿠키형식을정하는 정규식에 특수문자도 포함하게 설정을 하던가

아니면 쿠키저장전에 인코딩, 저장후 디코딩 하는 방법으로 할 예정입니다. 

답변들 감사합니다 ^^