Changeset 3e0e914 in github for program/steps/utils/modcss.inc
- Timestamp:
- Feb 3, 2011 4:12:35 PM (2 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 6ec4658
- Parents:
- 02b6e61
- File:
-
- 1 edited
-
program/steps/utils/modcss.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/utils/modcss.inc
rf5e7b353 r3e0e914 6 6 | | 7 7 | This file is part of the Roundcube Webmail client | 8 | Copyright (C) 2007-201 0, The Roundcube Dev Team |8 | Copyright (C) 2007-2011, The Roundcube Dev Team | 9 9 | Licensed under the GNU GPL | 10 10 | | … … 22 22 $source = ''; 23 23 24 $url = preg_replace('![^a-z0-9 :./\-_?$&=%]!i', '', $_GET['u']);25 if ($url === null ) {24 $url = preg_replace('![^a-z0-9.-]!i', '', $_GET['_u']); 25 if ($url === null || !($realurl = $_SESSION['modcssurls'][$url])) { 26 26 header('HTTP/1.1 403 Forbidden'); 27 echo $error;27 echo "Unauthorized request"; 28 28 exit; 29 29 } 30 30 31 $a_uri = parse_url($ url);31 $a_uri = parse_url($realurl); 32 32 $port = $a_uri['port'] ? $a_uri['port'] : 80; 33 33 $host = $a_uri['host']; … … 86 86 if (!empty($source) && in_array($mimetype, array('text/css','text/plain'))) { 87 87 header('Content-Type: text/css'); 88 echo rcmail_mod_css_styles($source, preg_replace('/[^a-z0-9]/i', '', $_GET[' c']));88 echo rcmail_mod_css_styles($source, preg_replace('/[^a-z0-9]/i', '', $_GET['_c'])); 89 89 exit; 90 90 }
Note: See TracChangeset
for help on using the changeset viewer.
