aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 4c45da6e9..91d49d97d 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -2482,7 +2482,13 @@ function elgg_http_build_url(array $parts) {
*/
function elgg_validate_action_url($link) {
$url = parse_url($link);
- parse_str($url['query'], $query);
+
+ if (isset($url['query'])) {
+ parse_str($url['query'], $query);
+ } else {
+ $query = array();
+ }
+
if (array_key_exists('__elgg_ts', $query) && array_key_exists('__elgg_token', $query)) {
return $link;
}