Strip ridiculously long DNS names
[selectricity] / app / views / quickvote / list_voters.rhtml
index ea276d7b6a7d50570ae059e5348ba82ca6b8b2ab..4d8e5388aae7b0f674b1be991e5b5662788b0e05 100644 (file)
             end
             
             %>
-        <%=h((w.host == nil or w.host.empty?) ? voter.ipaddress : w.host)%>
+        <%=h((w.host == nil or w.host.empty?) ? voter.ipaddress : w.host[-30..-1])%>
       </td>
       <td>
         <%org=(w.all.grep(/^(OrgName|org-name)/)[0] or "").sub(/^(OrgName|org-name)\:/,'').strip+" - "+ (w.all.grep(/^(NetName|netname)/)[0] or "").sub(/^(NetName|netname)\:/,'').strip %>
-        <% if org =~ /IANA/ %>
+        <% if org =~ /asdfasdf/ %>
           <%= "No additional information" %>
         <% else %>
           <%= h(org) %>

Benjamin Mako Hill || Want to submit a patch?