Browse Source

urlencode is better

pull/2650/head
Michael Vogel 6 years ago
parent
commit
6f203b0a75
  1. 2
      mod/fetch.php
  2. 2
      mod/p.php

2
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);

2
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);

Loading…
Cancel
Save