Skip to content

Commit

Permalink
[webui] Catch parenthesis in valid_xml_id
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Mar 13, 2012
1 parent f93e49e commit 8ecda3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/app/helpers/application_helper.rb
Expand Up @@ -294,7 +294,7 @@ def plural( count, singular, plural)

def valid_xml_id(rawid)
rawid = '_' + rawid if rawid !~ /^[A-Za-z_]/ # xs:ID elements have to start with character or '_'
ERB::Util::h(rawid.gsub(/[+&: .\/\~]/, '_'))
ERB::Util::h(rawid.gsub(/[+&: .\/\~\(\)]/, '_'))
end

def format_comment(comment)
Expand Down

0 comments on commit 8ecda3c

Please sign in to comment.