Warning: main(/home/hosting_users/freelyi/www/menu_js.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/freelyi/www/blog/archives/2004/11/27_대문자로된_변수명은_주의.html on line 40

Warning: main(/home/hosting_users/freelyi/www/menu_js.php) [function.main]: failed to open stream: No such file or directory in /home/hosting_users/freelyi/www/blog/archives/2004/11/27_대문자로된_변수명은_주의.html on line 40

Warning: main() [function.include]: Failed opening '/home/hosting_users/freelyi/www/menu_js.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/freelyi/www/blog/archives/2004/11/27_대문자로된_변수명은_주의.html on line 40

« 엔트리아이디가 이상 | Main | 세상의 중심은 나 »

대문자로된 변수명은 주의

변수명에 대문자를 사용할경우 주의해야할 것 같습니다. 알록블록님의 자바스크립트는 대소문자가 섞인 문자열을 출력하지만 새롭게 생성한 코드에서는 모두 소문자로 바꿔출력합니다. 아마도 자바스크립트 생성기 내부구조에 약간의 변화가 있었던게 아닐까 추측합니다. 다시말해 fuckingSpamCommenter 같이 변수명에 대문자를 사용해서 스크립트를 생성해도 그 스크립트로 생성되는 문자는 모두 소문자로 바뀝니다. 이메일 주소를 생성하는 스크립트이기 때문인 것 같습니다.

그러니까 처음부터 소문자로된 변수명을 쓰기로한 경우라면 아무 문제 없지만 대소문자를 섞어쓴 변수명을 사용할 경우 제대로 그렇게 표시되는지 확인할 필요가 있습니다.

덕분에 이제 스팸코멘트에 신경 끌 수 있겠군요. 감사합니다. ^^

TrackBack

TrackBack URL for this entry:
http://yongsang.com/blog/mt-tb.cgi/274

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on 2004年11月27日 15:16.

The previous post in this blog was 엔트리아이디가 이상.

The next post in this blog is 세상의 중심은 나.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.31