Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 969112 - RFC 1121 (sect 2.1) specifies that a host name must star…
…t with a letter or number.
  • Loading branch information
rmillner committed May 30, 2013
1 parent 2b9a445 commit dfac491
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions node/lib/openshift-origin-node/model/frontend_httpd.rb
Expand Up @@ -817,6 +817,11 @@ def remove_ssl_cert(server_alias)
def clean_server_name(name)
dname = name.downcase

if not dname =~ /^[a-z0-9]/
raise FrontendHttpServerNameException.new("Invalid start character", @container_uuid, \
@container_name, @namespace, dname )
end

if not dname.index(/[^0-9a-z\-.]/).nil?
raise FrontendHttpServerNameException.new("Invalid characters", @container_uuid, \
@container_name, @namespace, dname )
Expand Down

0 comments on commit dfac491

Please sign in to comment.