Browse Source

Fixes #2798: URL encode physical_address in links

Brandon Gilmore 7 years ago
parent
commit
fb0ed3db2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/templates/dcim/site.html

+ 1 - 1
netbox/templates/dcim/site.html

@@ -139,7 +139,7 @@
                     <td>
                         {% if site.physical_address %}
                             <div class="pull-right">
-                                <a href="http://maps.google.com/?q={{ site.physical_address|oneline }}" target="_blank" class="btn btn-primary btn-xs">
+                                <a href="http://maps.google.com/?q={{ site.physical_address|oneline|urlencode }}" target="_blank" class="btn btn-primary btn-xs">
                                     <i class="glyphicon glyphicon-map-marker"></i> Map it
                                 </a>
                             </div>