From: Michael Vogel Date: Thu, 30 Jun 2016 06:58:36 +0000 (+0200) Subject: urlencode is better X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6f203b0a7533ae28e241bb22f4c140982396fadb;p=friendica.git urlencode is better --- diff --git a/mod/fetch.php b/mod/fetch.php index f0838af507..cfcd82bb31 100644 --- a/mod/fetch.php +++ b/mod/fetch.php @@ -27,7 +27,7 @@ function fetch_init($a){ $parts = parse_url($r[0]["author-link"]); $host = $parts["scheme"]."://".$parts["host"]; - $location = $host."/fetch/".$a->argv[1]."/".$guid; + $location = $host."/fetch/".$a->argv[1]."/".urlencode($guid); header("HTTP/1.1 301 Moved Permanently"); header("Location:".$location); diff --git a/mod/p.php b/mod/p.php index df904372ad..899b51116d 100644 --- a/mod/p.php +++ b/mod/p.php @@ -31,7 +31,7 @@ function p_init($a){ $parts = parse_url($r[0]["author-link"]); $host = $parts["scheme"]."://".$parts["host"]; - $location = $host."/p/".$guid.".xml"; + $location = $host."/p/".urlencode($guid).".xml"; header("HTTP/1.1 301 Moved Permanently"); header("Location:".$location);