summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-12-17 15:07:01 +0100
committermh <mh@immerda.ch>2011-12-17 15:07:01 +0100
commit13e1f9f8c74c74fe1a1f2cf54ede782524e7beff (patch)
tree977afa659a168aae204dc9a99330e4217f77c15e /lib
parent372cddd123b8840d19e1651d770275ae190839b6 (diff)
reduce special characters.
Various apps, especially php-apps :/ have a problem with '<' or '>' as a password character. To reduce the amount of pain from a freshly generated password, we remove these characters.
Diffstat (limited to 'lib')
-rw-r--r--lib/trocla/util.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/trocla/util.rb b/lib/trocla/util.rb
index 5bca8f1..3461bb2 100644
--- a/lib/trocla/util.rb
+++ b/lib/trocla/util.rb
@@ -17,7 +17,7 @@ class Trocla
@normal_chars ||= ('a'..'z').to_a + ('A'..'Z').to_a + ('0'..'9').to_a
end
def special_chars
- @special_chars ||= "+*%/()@&=?![]{}-_.,;:<>".split(//)
+ @special_chars ||= "+*%/()@&=?![]{}-_.,;:".split(//)
end
end
end