summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-03-10 16:53:09 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-03-10 16:53:09 +0000
commit3ead560368255d17a43f8b14df554a776417ec03 (patch)
treef376f3ac1a912985721f493c1d49e799a254cad5 /includes
parentd29d596674224a5ffa261c2927f73103bb05fca6 (diff)
downloadbrdo-3ead560368255d17a43f8b14df554a776417ec03.tar.gz
brdo-3ead560368255d17a43f8b14df554a776417ec03.tar.bz2
- #49211: Fix bug with linking to absolute URLs through l()
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 2375a93c3..f87d9b6c5 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -908,7 +908,7 @@ function url($path = NULL, $query = NULL, $fragment = NULL, $absolute = FALSE) {
// Return an external link if $path contains an allowed absolute URL.
// Only call the slow filter_xss_bad_protocol if $path contains a ':'.
- if (strpos($path, ':') !== FALSE && filter_xss_bad_protocol($path) == $path) {
+ if (strpos($path, ':') !== FALSE && filter_xss_bad_protocol($path, FALSE) == check_plain($path)) {
// Split off the fragment
if (strpos($path, '#')) {
list($path, $old_fragment) = explode('#', $path, 2);