[orca] Added a sanity check for linkBasename()



commit fd28a0bc3d4d4b335706cdfe6bb43bbd1b6f24c2
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Nov 19 15:39:47 2011 -0500

    Added a sanity check for linkBasename()

 src/orca/script_utilities.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 6401aec..90672e4 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1061,6 +1061,8 @@ class Utilities:
                 # What if there's not? See backwards.html.
                 #
                 uri = uri.split('://')[-1]
+                if not uri:
+                    return basename
 
                 # Get the last thing after all the /'s, unless it ends
                 # in a /.  If it ends in a /, we'll look to the stuff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]