Changeset 15129


Ignore:
Timestamp:
Dec 22, 2015, 5:18:54 AM (9 years ago)
Author:
Ryan J Ollos
Message:

0.1.3dev: Normalize casing before comparing paths

The issue was reported by Ahmed M in
gmessage:trac-users:APt7mgBUHPM/kTrktlX1BQAJ.

Refs #12608.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ticketmoverplugin/trunk/ticketmoverplugin/web_ui.py

    r15110 r15129  
    88# you should have received as part of this distribution.
    99#
     10
     11import os
    1012
    1113from trac.core import Component, TracError, implements
     
    6365        envs = {}
    6466        for env_name, env_path in get_environments(req.environ).items():
    65             if env_path != self.env.path:
     67            if os.path.normcase(env_path) != os.path.normcase(self.env.path):
    6668                try:
    6769                    env = open_environment(env_path, use_cache=True)
Note: See TracChangeset for help on using the changeset viewer.