diff options
author | reed%reedloden.com <> | 2009-11-16 17:33:10 +0100 |
---|---|---|
committer | reed%reedloden.com <> | 2009-11-16 17:33:10 +0100 |
commit | c8b25c75fc1538500ac5c899ba60f9c114d7194b (patch) | |
tree | 7f5aabc0322432e7e22456fff68a6a5ce6bbbec7 /Bugzilla | |
parent | eba41431743328f1b37aa6edfb9a5dd49aa791b8 (diff) | |
download | bugzilla-c8b25c75fc1538500ac5c899ba60f9c114d7194b.tar.gz bugzilla-c8b25c75fc1538500ac5c899ba60f9c114d7194b.tar.xz |
Bug 528872 - "Attachments in attachments table should have CSS classes to help with styling" [p=reed r=LpSolit a=LpSolit]
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Util.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index d1a52a5fc..b5e99bf69 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -214,7 +214,7 @@ sub url_quote { sub css_class_quote { my ($toencode) = (@_); - $toencode =~ s/ /_/g; + $toencode =~ s#[ /]#_#g; $toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("&#x%x;",ord($1))/eg; return $toencode; } @@ -733,7 +733,7 @@ Quotes characters so that they may be included as part of a url. =item C<css_class_quote($val)> Quotes characters so that they may be used as CSS class names. Spaces -are replaced by underscores. +and forward slashes are replaced by underscores. =item C<xml_quote($val)> |