문제

Many documents recommend to use htmlspecialchars() to get rid of data injection during form submitting. form-validation.

With html5 (i guess) not using action attribute of form, makes the similar effect with using $_SERVER["PHP_SELF"]. Does actionless forms create the same security leak as well?

도움이 되었습니까?

해결책

No. If you make actionless form, you don't use $_SERVER["PHP_SELF"], so its safe.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top