summaryrefslogtreecommitdiff
path: root/includes/functions/functions_places.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-04 13:06:27 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-04 13:06:27 +0000
commit1a45f56f9feb5068977d09425c2d908cc592221e (patch)
tree7a923b602b55412a9fb0b9700e6eb2e23af325ef /includes/functions/functions_places.php
parent09d0e25dd4debda83b96cd7dfd92eba6ad7276d3 (diff)
downloadwebtrees-1a45f56f9feb5068977d09425c2d908cc592221e.tar.gz
webtrees-1a45f56f9feb5068977d09425c2d908cc592221e.tar.bz2
webtrees-1a45f56f9feb5068977d09425c2d908cc592221e.zip
Square brackets are not valid characters in URLS, and need escaping
Diffstat (limited to 'includes/functions/functions_places.php')
-rw-r--r--includes/functions/functions_places.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/functions/functions_places.php b/includes/functions/functions_places.php
index c33fd5b50c..911942771d 100644
--- a/includes/functions/functions_places.php
+++ b/includes/functions/functions_places.php
@@ -38,7 +38,7 @@ function get_place_url($gedcom_place) {
$level = count($exp);
$url = "placelist.php?action=show&amp;level=".$level;
for ($i=0; $i<$level; $i++) {
- $url .= "&amp;parent[".$i."]=".rawurlencode($exp[$level-$i-1]);
+ $url .= "&amp;parent%5B".$i."%5D=".rawurlencode($exp[$level-$i-1]);
}
$url .= "&amp;ged=".rawurlencode($GEDCOM);
return $url;