byte
The world's texts require more than 256 symbols to behave
Your program must handle byte and Unicode
The byte stream does not contain encoded information
The indicated encoding may be wrong
Here are three tips for keeping Unicode clean in your programming:
Unicode sandwich: Whenever possible, the text that your program handles is Unicode.
Get to know your string. You should know what Unicode is in your program, what is byte, and for these byte strings, you
Original address: http://kk-kingboy.blog.163.com/blog/static/55354561200911313145623/Due to the fact that the site is more black, the following summarizes the website application needs to pay attention to the security issues:form data validationThe data must be validated before the data is entered into the program. Illegal input issues are the most common Web application security vulnerabilities.Need to do: check any input content. Accept all acceptab
" relationship with the other execution environment, and the embodiment of this "inclusion" is the "scope chain", and the more rigorous argument is that when the code executes in another environment, a scope chain of the variable object is created. And the role of the scope chain is very good, we often say that the variable lookup from the local scope to the outer layer to the outer layer until the global scope is dependent on this scope chain. The scope chain can only be looked up.Memory
license list, and which HTTP verbs and header information fields can be used. The browser will issue a formal XMLHttpRequest request only if a positive reply is received, otherwise it will be an error.Here is a JavaScript script for a browser: In the above code, the HTTP request method is put, and a custom header information X-custom-header is sent. The browser discovers that this is a non-trivial request, and automatically issues a "preflight" requ
ECshop compatibility issues encountered while migrating to the PHP7 version, ECSHOPPHP7When installing ECShop V2.7.3 on PHP7, Error!Deprecated:methods with the same name as their class won't is constructors in a future version of PHP; ECS have a deprecated constructor in/usr/local/nginx/html/ecshop/upload/includes/cls_ecshop.php on line 25The reason for this error is that PHP7 no longer supports the same construction method as the class name, and the
Due to compatibility issues between XRDP, GNOME, and unity, it is still not possible to use XRDP to log in to GNOME or unity's Remote Desktop in Ubuntu 14.04, where only black and white dots are background and no icons are available. As with resolution 13.10, you can only log in to Xfce Remote Desktop using XRDP. !--more--> First install Xfce: sudo apt-get update sudo apt-get install xfce4 If the network speed is slow, This will last for som
body with HTMLForm labelThis tag in IE, will automatically margin some margins, and in the FF margin is 0, so if you want to show consistency, so it is best to specify the margin and padding in the CSS, for the above two issues, my CSS is generally used first in the style Ul,form {margin:0;padding:0;}.25. Attribute selector (this is not compatible, is a bug to hide CSS)p[id]{}div[id]{}This is hidden for IE6.0 and IE6.0 versions, FF and opera. There i
1. Compatibility issues when using ANGULARJS and WINJS1. Open SCP mode 2. Using gasket files provided by WINJSjquery, Angularjs, and other technologies that cannot be used in winjs, such as innerHTML, innertext, and so on can work properly This JS needs to be placed in the first load GitHub Address:Https://github.com/MSOpenTech/winstore-jscompat 2. JavaScript Development Windows Phone program does not fully exit the issueIn WP system, the program w
e6.0,ie7.0 CSS compatibility issues with Firefox 1.DOCTYPE impact CSS Processing2.ff:div set Margin-left, Margin-right is auto when the center, IE No3.ff:body when setting text-align, Div needs to set Margin:auto (mainly margin-left,margin-right) to center4.FF: After setting padding, Div will increase height and width, but IE will not, so need to set a height and width with!important5.FF: Support!important, IE is ignored, can be used!important for FF
Java provides a set of APIs to support the interaction between threads. A set of APIs waiting to be notified in the object classWait ()Notify ()Notifyall ()It is important to note that you must never call the Wait () method outside of the loop. (Open a separate article to discuss) The following uses consumer and producer issues to demonstrate the use of the above API:Packagexiancheng;publicclasspc{publicstaticvoidmain (String[] args) {shareds=newshare
When Eclipse builds the SSM Framework project (Web project) through Maven, the default web.xml file version is 2.3,JRE version 1.5, and there are various issues in modifying its versionFor example:is missing and is set to trueJavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer等问题When you look up a method, the configuration order error is also the caus
Java Multithreading is what
Java provides a mechanism for concurrent (simultaneous, independent) processing of multiple tasks. Multiple lines Cheng in the same JVM process, so sharing the same memory space, compared to multiple processes, the communication between multithreading more lightweight. As I understand it, Java multithreading is all about improving CPU utilization. Java threads have 4 states, new (new), Run (Runnable), blocking (Blocked), End (Dead), the key is blocking (Blocked), blo
The security of the Web application is divided into a wide variety of situations, which are not intended to introduce all of them, but only some of the common ones.
List of security issues for common Web application security issues:1, cross-site scripting attacks (CSS or XSS, Cross Site scripting)2. SQL injection attack (SQL injection)3, Remote command Execution (code execution, the individual
methods are the same), if you want to jump to a page, if you use forwarding, then go to the page, if you refresh the page, it will cause the form to repeat the submission:
For example, if you refresh the page after submitting the form as post:
After you click Retry:
After submitting the form, if you redirect to the page instead, refreshing the page will only refresh the page without causing the form to be repeatedly submitted
3. Getoutputstream and Getwriter Mutex
Objective
PHP is a common open source scripting language, with its syntax mixed with C,java and the syntax of excellent languages such as Perl. In addition, it provides a wide range of function libraries for developers to use. However, if used improperly, PHP also poses a very large security risk to the application.
In this article, we will delve into some of the problems that often arise in PHP applications, especially when we use the "= =" (comparison operator) for string comparisons, some s
memory allocation is set up indefinitely, in order to avoid infinite loops, the new-handling function must do one of several things (refer to effective C + + Third Edition "Item 49": Allow more memory to be available, set another functioning New-handler, delete the current new handler, throw an exception (Bad_alloc or inherit from Bad_alloc), and invoke the abort directly () or a function such as exit ().
The exception handling for the operator delete is simpler, with only the safe delete null
Ajax| Security | Problem XML security Vendor Forum Systems A warning on security issues last month that many organizations need to consider potential security flaws and performance issues as more and more Ajax-style applications emerge.
"We are not making a warning," Walid Negm, vice president of Marketing at Forum Systems Company in Salt Lake City, said. We just feel the need to get people thinking about
example:
[Code]
Get/index.php? phpsessid=12345 http/1.1
Host:example.org
Passing the session ID in this way can achieve the same effect as passing the session ID with the cookie head, but the disadvantage is that the developer is expected to attach the session ID to the URL or join the form as a hidden field. Unlike cookies, as long as the server side instructs the client to create a cookie successfully, the client will automatically pass the corresponding cookie to the server side
Objective
I believe we all know that PHP is the best language in the world, and the problem of PHP itself can be counted as one aspect of web security. The features in PHP are weakly typed, and the built-in functions loosely handle incoming parameters.
This article is mainly to record my attack and defense platform encountered in the PHP function of the problems, and the weak type of PHP problems. For everyone in the study or use PHP when there is a certain reference value, below to see togeth
Hibernate optimization Crawl (optimization guidelines---n+1 query issues)
By default, hibernate does not load data that you do not request, thus reducing the memory consumption of the persisted context. However, it will also make you face the so-called n+1 query problem. If each association and collection are initialized on demand only, and no other policy is configured. A specific process can also perform dozens of or even hundreds of of queries to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.