Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Mis vahe on urlencode() ja htmlspecialchars() funktsioonidel?
Mõlemad teevad sama asja — kaitsevad XSS-rünnakute eest
urlencode() töötab ainult POST päringutega, htmlspecialchars() ainult GET päringutega
urlencode() on vanem funktsioon, htmlspecialchars() on uuem
urlencode() kodeerib andmed URL-i parameetritesse sobivaks; htmlspecialchars() kaitseb HTML-lehel kuvamisel XSS-i eest — need lahendavad erinevaid probleeme
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!