MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

Commit 5d1c68e5 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

fix ssh-key validation regex

(was rejecting base64 padding bytes "=")
parent 6444b5e0
......@@ -29,7 +29,7 @@ class User < ActiveRecord::Base
# - comment line (starting with '#')
# - ssh key line (options not allowed)
validates :sshkey, format: {
with: /\A(\s*(|#.*|ssh-[a-z0-9]+\s+[\w\/+]+(\s.*)?)(\r?\n|\z))*\z/,
with: /\A(\s*(|#.*|ssh-[a-z0-9]+\s+[\w\/+=]+(\s.*)?)(\r?\n|\z))*\z/,
## Look in the config and test the authorized domain
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment