Changeset fde466c in github
- Timestamp:
- Jun 20, 2008 7:40:05 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 4dae735
- Parents:
- 2da368e
- Location:
- program
- Files:
-
- 5 edited
-
include/main.inc (modified) (1 diff)
-
include/rcmail.php (modified) (1 diff)
-
include/rcube_json_output.php (modified) (1 diff)
-
steps/addressbook/mailto.inc (modified) (1 diff)
-
steps/mail/compose.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
r6ea6c9b rfde466c 129 129 { 130 130 $app = rcmail::get_instance(); 131 132 $qstring = ''; 133 $base = $app->comm_path; 134 135 if ($task && in_array($task, rcmail::$main_tasks)) 136 $base = ereg_replace('_task=[a-z]+', '_task='.$task, $app->comm_path); 137 138 if (is_array($p)) 139 foreach ($p as $key => $val) 140 $qstring .= '&'.urlencode($key).'='.urlencode($val); 141 142 return $base . ($action ? '&_action='.$action : '') . $qstring; 131 return $app->url((array)$p + array('_action' => $action, 'task' => $task)); 143 132 } 144 133 -
program/include/rcmail.php
rc719f3c rfde466c 831 831 { 832 832 if (!is_array($p)) 833 $p = array('action' => @func_get_arg(0)); 834 835 $url = $p['task'] ? './?_task=' . $p['task'] : $this->comm_path; 833 $p = array('_action' => @func_get_arg(0)); 834 835 if ($p['task'] && in_array($p['task'], rcmail::$main_tasks)) 836 $url = './?_task='.$p['task']; 837 else 838 $url = $this->comm_path; 839 836 840 unset($p['task']); 837 838 841 foreach ($p as $par => $val) 839 $url .= sprintf('&%s=%s', urlencode($par), urlencode($val));842 $url .= '&'.urlencode($par).'='.urlencode($val); 840 843 841 844 return $url; -
program/include/rcube_json_output.php
rc719f3c rfde466c 170 170 * @see rcmail::url() 171 171 */ 172 public function redirect($p = array(), $delay = 0)172 public function redirect($p = array(), $delay = 1) 173 173 { 174 174 $location = rcmail::get_instance()->url($p); -
program/steps/addressbook/mailto.inc
rfc73746 rfde466c 38 38 $mailto_str = join(', ', $mailto); 39 39 $mailto_id = substr(md5($mailto_str), 0, 16); 40 $_SESSION['mailto'][$mailto_id] = $mailto_str;41 $OUTPUT-> command('redirect', rcmail_url('compose', array('_mailto' => $mailto_id), 'mail'));40 $_SESSION['mailto'][$mailto_id] = urlencode($mailto_str); 41 $OUTPUT->redirect(array('task' => 'mail', '_action' => 'compose', '_mailto' => $mailto_id)); 42 42 } 43 43 else -
program/steps/mail/compose.inc
rc719f3c rfde466c 136 136 // we have a set of recipients stored is session 137 137 if (($mailto_id = $_SESSION['compose']['param']['_mailto']) && $_SESSION['mailto'][$mailto_id]) 138 $fvalue = $_SESSION['mailto'][$mailto_id];138 $fvalue = urldecode($_SESSION['mailto'][$mailto_id]); 139 139 else if (!empty($_SESSION['compose']['param']['_to'])) 140 140 $fvalue = $_SESSION['compose']['param']['_to'];
Note: See TracChangeset
for help on using the changeset viewer.
