Changeset 930 in subversion
- Timestamp:
- Nov 25, 2007 12:34:19 PM (5 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 9 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/main.inc (modified) (1 diff)
-
program/include/rcmail_template.inc (modified) (1 diff)
-
program/include/rcube_html.inc (modified) (2 diffs)
-
program/steps/addressbook/func.inc (modified) (1 diff)
-
program/steps/mail/func.inc (modified) (4 diffs)
-
program/steps/mail/get.inc (modified) (3 diffs)
-
program/steps/mail/sendmail.inc (modified) (1 diff)
-
program/steps/mail/show.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r921 r930 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2007/11/25 (thomasb) 5 ---------- 6 - Applied UID fetch patch by Glen Ogilvie 7 - Applied patch for correct Postgres instructions from ticket #1484674 8 - Fix overriding of session vars when register_globals is on (#1484670) 9 - Fix wrong Postgres setup instructions in INSTALL (#1484674) 10 - Fix bug with case-sensitive folder names (#1484245) 11 - Don't create default folders by default 12 - Added Georgian localization by Zaza Zviadadze 13 - Updated Russian localization 14 - Fixed some potential security risks (audited by Andris) 15 3 16 4 17 2007/11/20 (tomekp) -
trunk/roundcubemail/program/include/main.inc
r925 r930 1433 1433 // use value from post 1434 1434 if (!empty($_POST[$fname])) 1435 $value = $_POST[$fname];1435 $value = get_input_value($fname, RCUBE_INPUT_POST); 1436 1436 1437 1437 $out = $input->show($value); -
trunk/roundcubemail/program/include/rcmail_template.inc
r802 r930 832 832 } 833 833 834 $fields['host'] = isset($select_host) ? $select_host->show( $_POST['_host']) : null;834 $fields['host'] = isset($select_host) ? $select_host->show(get_input_value('_host', RCUBE_INPUT_POST)) : null; 835 835 } 836 836 else if (!strlen($CONFIG['default_host'])) 837 837 { 838 838 $input_host = new textfield(array('name' => '_host', 'id' => 'rcmloginhost', 'size' => 30)); 839 $fields['host'] = $input_host->show( $_POST['_host']);839 $fields['host'] = $input_host->show(get_input_value('_host', RCUBE_INPUT_POST)); 840 840 } 841 841 -
trunk/roundcubemail/program/include/rcube_html.inc
r786 r930 293 293 continue; 294 294 295 // encode textarea content296 if ($key=='value')297 $value = Q($value, 'strict', FALSE);298 299 295 // attributes with no value 300 296 if (in_array($key, array('checked', 'multiple', 'disabled', 'selected', 'nowrap'))) … … 305 301 // don't convert size of value attribute 306 302 else if ($key=='value') 307 $attrib_arr[] = sprintf('%s="%s"', $this->_conv_case($key, 'attrib'), $value);303 $attrib_arr[] = sprintf('%s="%s"', $this->_conv_case($key, 'attrib'), Q($value, 'strict', false)); 308 304 309 305 // regular tag attributes 310 306 else 311 $attrib_arr[] = sprintf('%s="%s"', $this->_conv_case($key, 'attrib'), $this->_conv_case( $value, 'value'));307 $attrib_arr[] = sprintf('%s="%s"', $this->_conv_case($key, 'attrib'), $this->_conv_case(Q($value), 'value')); 312 308 } 313 309 -
trunk/roundcubemail/program/steps/addressbook/func.inc
r582 r930 33 33 // set list properties and session vars 34 34 if (!empty($_GET['_page'])) 35 { 36 $CONTACTS->set_page(intval($_GET['_page'])); 37 $_SESSION['page'] = $_GET['_page']; 38 } 35 $CONTACTS->set_page(($_SESSION['page'] = intval($_GET['_page']))); 39 36 else 40 37 $CONTACTS->set_page(isset($_SESSION['page']) ?$_SESSION['page'] : 1); -
trunk/roundcubemail/program/steps/mail/func.inc
r909 r930 31 31 // set imap properties and session vars 32 32 if ($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC)) 33 { 34 $IMAP->set_mailbox($mbox); 35 $_SESSION['mbox'] = $mbox; 36 } 33 $IMAP->set_mailbox(($_SESSION['mbox'] = $mbox)); 37 34 38 35 if (!empty($_GET['_page'])) 39 { 40 $IMAP->set_page((int)$_GET['_page']); 41 $_SESSION['page'] = (int)$_GET['_page']; 42 } 36 $IMAP->set_page(($_SESSION['page'] = intval($_GET['_page']))); 43 37 44 38 // set mailbox to INBOX if not set … … 863 857 $attrib['id'] = 'rcmailMsgBody'; 864 858 865 $safe_mode = (bool)$_GET['_safe'];859 $safe_mode = intval($_GET['_safe']); 866 860 $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); 867 861 $out = '<div '. $attrib_str . ">\n"; … … 1198 1192 global $CONFIG, $IMAP, $MESSAGE; 1199 1193 1200 if (!is_array($MESSAGE) || !is_array($MESSAGE['parts']) || !($_GET['_uid'] && $_GET['_part']) || !$MESSAGE['parts'][$_GET['_part']]) 1194 $part = get_input_value('_part', RCUBE_INPUT_GPC); 1195 if (!is_array($MESSAGE) || !is_array($MESSAGE['parts']) || !($_GET['_uid'] && $_GET['_part']) || !$MESSAGE['parts'][$part]) 1201 1196 return ''; 1202 1197 1203 $part = &$MESSAGE['parts'][$ _GET['_part']];1198 $part = &$MESSAGE['parts'][$part]; 1204 1199 1205 1200 $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'cellspacing', 'cellpadding', 'border', 'summary')); … … 1231 1226 global $MESSAGE; 1232 1227 1233 $part = $MESSAGE['parts'][ $_GET['_part']];1228 $part = $MESSAGE['parts'][get_input_value('_part', RCUBE_INPUT_GPC)]; 1234 1229 $ctype_primary = strtolower($part->ctype_primary); 1235 1230 -
trunk/roundcubemail/program/steps/mail/get.inc
r912 r930 89 89 list($new_parts, $new_attachments) = 90 90 rcmail_parse_message($MESSAGE['structure'], 91 array('safe' => (bool)$_GET['_safe'],91 array('safe' => intval($_GET['_safe']), 92 92 'prefer_html' => TRUE, 93 93 'get_url' => $GET_URL.'&_part=%s')); … … 103 103 104 104 $OUTPUT = new rcube_html_page(); 105 $OUTPUT->write(rcmail_print_body($part, (bool)$_GET['_safe']));105 $OUTPUT->write(rcmail_print_body($part, intval($_GET['_safe']))); 106 106 } 107 107 else … … 131 131 $cont = ''; 132 132 list($MESSAGE['parts']) = rcmail_parse_message($MESSAGE['structure'], 133 array('safe' => (bool)$_GET['_safe'],133 array('safe' => intval($_GET['_safe']), 134 134 'get_url' => $GET_URL.'&_part=%s')); 135 135 -
trunk/roundcubemail/program/steps/mail/sendmail.inc
r816 r930 200 200 if (!empty($_POST['_priority'])) 201 201 { 202 $priority = (int)$_POST['_priority'];202 $priority = intval($_POST['_priority']); 203 203 $a_priorities = array(1=>'highest', 2=>'high', 4=>'low', 5=>'lowest'); 204 204 if ($str_priority = $a_priorities[$priority]) -
trunk/roundcubemail/program/steps/mail/show.inc
r668 r930 58 58 list($MESSAGE['parts'], $MESSAGE['attachments']) = rcmail_parse_message( 59 59 $MESSAGE['structure'], 60 array('safe' => (bool)$_GET['_safe'],60 array('safe' => intval($_GET['_safe']), 61 61 'prefer_html' => $CONFIG['prefer_html'], 62 62 'get_url' => $GET_URL.'&_part=%s') … … 72 72 // give message uid to the client 73 73 $OUTPUT->set_env('uid', $MESSAGE['UID']); 74 $OUTPUT->set_env('safemode', (bool)$_GET['_safe']);74 $OUTPUT->set_env('safemode', intval($_GET['_safe'])); 75 75 76 76 $next = $prev = -1;
Note: See TracChangeset
for help on using the changeset viewer.
