mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
urlencode is better
This commit is contained in:
parent
5341223617
commit
6f203b0a75
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue