Changeset 1133

Show
Ignore:
Timestamp:
05/03/08 00:10:04 (5 months ago)
Author:
rats
Message:

* Fixed #1210: global redirects affecting pages
* Fixed #1228: Change in edit_mail_acc.php in change set 1132

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r1132 r1133  
    11ispCP ω 1.0.0 Changelog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     3 
     42008-05-03 Benedikt Heintel 
     5        - CONFIGS: 
     6                * Fixed #1210: global redirects affecting pages 
     7        - GUI: 
     8                * Fixed #1228: Change in edit_mail_acc.php in change set 1132 
    39 
    4102008-04-29 Benedikt Heintel 
  • trunk/configs/centos/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/debian/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail([\/]?)  http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/fedora/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/freebsd/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/gentoo/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/openbsd/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/opensuse/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/redhat/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/configs/ubuntu/apache/parts/dmn_entry.tpl

    r1026 r1133  
    1919    Alias /errors   {WWW_DIR}/{DMN_NAME}/errors/ 
    2020 
    21     RedirectMatch permanent /ftp([\/]?)               http://{BASE_SERVER_VHOST}/ftp/ 
    22     RedirectMatch permanent /pma([\/]?)               http://{BASE_SERVER_VHOST}/pma/ 
    23     RedirectMatch permanent /webmail([\/]?)   http://{BASE_SERVER_VHOST}/webmail/ 
     21    RedirectMatch permanent ^/ftp([\/]?)              http://{BASE_SERVER_VHOST}/ftp/ 
     22    RedirectMatch permanent ^/pma([\/]?)              http://{BASE_SERVER_VHOST}/pma/ 
     23    RedirectMatch permanent ^/webmail[\/]?)           http://{BASE_SERVER_VHOST}/webmail/ 
    2424 
    2525    ErrorDocument 401 /errors/401.html 
  • trunk/gui/client/edit_mail_acc.php

    r1132 r1133  
    126126                                        ) 
    127127                                ); 
    128                 if (($mail_forward === '_no_') ||(count($mtype) > 1)) { 
     128                if (($mail_forward !== '_no_') && (count($mtype) > 1)) { 
    129129                        $tpl->assign( 
    130130                                        array( 
     
    132132                                                'FORWARD_MAIL' => '', 
    133133                                                'FORWARD_MAIL_CHECKED' => 'checked="checked"' 
     134                                                ) 
     135                                        ); 
     136                        $tpl->parse('NORMAL_MAIL', '.normal_mail'); 
     137                } else if ($mail_forward === '_no_') { 
     138                        $tpl->assign( 
     139                                        array( 
     140                                                'ACTION' => 'update_pass', 
     141                                                'FORWARD_MAIL' => '', 
     142                                                'FORWARD_MAIL_CHECKED' => '', 
     143                                                'FORWARD_LIST' => '', 
     144                                                'FORWARD_LIST_ENABLED' => 'disabled="disabled"' 
    134145                                                ) 
    135146                                        ); 
     
    172183                set_page_message(tr('Entered passwords differ!')); 
    173184                return; 
    174                 // Not permitted chars 
    175         } else if (preg_match("/[`\xB4'\"\\|<>^\x00-\x1f]/i", $pass)) { 
     185        } else if (preg_match("/[`\xB4'\"\\|<>^\x00-\x1f]/i", $pass)) { // Not permitted chars 
    176186                set_page_message(tr('Password data includes not valid signs!')); 
    177187                return;