domci : commas should be followed by space
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5281 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -25,7 +25,7 @@ class route
|
||||
/** Allow slashes in the url when matching the regex */
|
||||
public $allowSlashes = true;
|
||||
/** Provide the the class catch errors in routing.
|
||||
* Must be provided in an array(class,method); */
|
||||
* Must be provided in an array(class, method); */
|
||||
public $errors = null;
|
||||
/** Preroute used in modules */
|
||||
public $preroute = "";
|
||||
@@ -260,10 +260,9 @@ class route
|
||||
// Allow to redirect from POST to GET, but not GET to GET (can loop)
|
||||
if ($destURL === $requestURL && $_SERVER["REQUEST_METHOD"] === "GET")
|
||||
$this->error (new \Exception ("Redirect to myself", 400));
|
||||
if (substr_count ($baseURL, "../") > 1+ substr_count ($destURL,"/"))
|
||||
if (substr_count ($baseURL, "../") > 1+ substr_count ($destURL, "/"))
|
||||
$this->error (new \Exception (
|
||||
"Can't redirect outside this site (Base $baseURL)",
|
||||
405));
|
||||
"Can't redirect outside this site (Base $baseURL)", 405));
|
||||
|
||||
if ($this->debug)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user