diff options
| author | Alex Gaynor | 2009-03-21 17:37:42 -0400 | 
|---|---|---|
| committer | Alex Gaynor | 2009-03-21 17:37:42 -0400 | 
| commit | 671bac94182b000be3960dc7c83e89ccef7ccf26 (patch) | |
| tree | c15d284652b46ba5c7751c42989f667f18dcd606 /debug_toolbar/middleware.py | |
| parent | 4ffe14db039981d06aa58f3ad3c2b3472824961b (diff) | |
| parent | 30ab58a69510f3fd35e19f6be9b669d2fdf956c0 (diff) | |
| download | django-debug-toolbar-671bac94182b000be3960dc7c83e89ccef7ccf26.tar.bz2 | |
Merge commit 'rob/master'
Diffstat (limited to 'debug_toolbar/middleware.py')
| -rw-r--r-- | debug_toolbar/middleware.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/middleware.py b/debug_toolbar/middleware.py index c3cf5f9..9c46079 100644 --- a/debug_toolbar/middleware.py +++ b/debug_toolbar/middleware.py @@ -19,7 +19,7 @@ def replace_insensitive(string, target, replacement):      Code borrowed from: http://forums.devshed.com/python-programming-11/case-insensitive-string-replace-490921.html      """      no_case = string.lower() -    index = no_case.find(target.lower()) +    index = no_case.rfind(target.lower())      if index >= 0:          return string[:index] + replacement + string[index + len(target):]      else: # no results so return the original string  | 
