summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-14 07:02:32 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-14 07:02:32 +0000
commit3e9aabe05897becc4b0b749832540a49eb77184d (patch)
tree0d1e2c9a9c336d9147848932352abd19e5a11c9f /includes/common.inc
parentd95499bf03c65f59190687882567c80a074c711a (diff)
downloadbrdo-3e9aabe05897becc4b0b749832540a49eb77184d.tar.gz
brdo-3e9aabe05897becc4b0b749832540a49eb77184d.tar.bz2
- Moved some CXX checks to a centralized place; less error-prone.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 234309459..1e4c249a7 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -414,6 +414,12 @@ function search_type($type = 0, $action = 0, $query = 0, $options = 0) {
function drupal_goto($url) {
/*
+ ** Check the URL to prevent XSS attacks:
+ */
+
+ $url = check_url($url);
+
+ /*
** Translate &amp; to simply &
*/