How to sanitize WordPress function against single domain?
Anybody have an idea on how this WordPress include page function could be sanitized to only work with pulling content from a single domain?
PHP Code:
PHP Code:
I see this as a potential exploit, unless you're able to sanitize it against a single (or multiple) chosen safe domains. I'm only interested in a single valid domain -- at least at the moment. I'm trying to dev a site right now, and this part is eluding me. It's going to pull static pages from a CDN (cdn.somesite.com), if I can get it working. |
I solved it.
This is the function: PHP Code:
PHP Code:
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.