Skip to content

Commit 9e65c06

Browse files
authored
fix faulty copy&paste error for quotes
1 parent 27e7614 commit 9e65c06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phpserver/router.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262

6363
$debug($route);
6464

65-
if (strpos($route, static/version) === 0) {
66-
  $redirectRoute = preg_replace(#static/version[0–9]*/#’,’static/, $route, 1);
67-
  $debug(redirect static version string to: . $redirectRoute);
68-
  header(Location: /.$redirectRoute);
65+
if (strpos($route, 'static/version') === 0) {
66+
  $redirectRoute = preg_replace('#static/version[0–9]*/#','static/', $route, 1);
67+
  $debug("redirect static version string to:" . $redirectRoute);
68+
  header('Location: /'.$redirectRoute);
6969
  exit;
7070
}
7171

0 commit comments

Comments
 (0)