summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-07-13 20:14:18 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-07-13 20:14:37 +0200
commit88fb5635109ff5ed994aa5624c0bc1a95c814176 (patch)
tree4620f2184f386f1e33dd0b2ae58e6d04a0477706 /program/include/rcmail.php
parent688d16e88296e2ae96ab9b7fc379eaef31d77933 (diff)
Avoid warnings; silently pipe http: urls through rcmail::url()
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index c70170209..a6b0bcd57 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -726,8 +726,12 @@ class rcmail extends rcube
*/
public function url($p)
{
- if (!is_array($p))
+ if (!is_array($p)) {
+ if (strpos($p, 'http') === 0)
+ return $p;
+
$p = array('_action' => @func_get_arg(0));
+ }
$task = $p['_task'] ? $p['_task'] : ($p['task'] ? $p['task'] : $this->task);
$p['_task'] = $task;