]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Allow slashes on filenames
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Nov 2013 19:44:37 +0000 (17:44 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Nov 2013 19:44:37 +0000 (17:44 -0200)
lib/keyringer/functions

index 0864b911b0c88f09e29f4c0d549b380c8186ccec..e2face11b1215411a0c24b049c05f69066108649 100755 (executable)
@@ -348,7 +348,7 @@ function keyringer_get_new_file {
   fi
 
   # Sanitize and complete file name
-  FILE="`echo $FILE | sed -e s/[^A-Za-z0-9.]/_/g`"
+  FILE="`echo $FILE | sed -e s/[^A-Za-z0-9.\/]/_/g`"
   FILE="$(keyringer_filename "$FILE")"
   
   if [ -z "$FILE" ]; then