Przeglądaj źródła

preg_replace is not quite PCRE

Zachary Kotlarek 9 lat temu
rodzic
commit
f8d9eacac9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      opendrive.php

+ 1 - 1
opendrive.php

@@ -53,7 +53,7 @@ function dbOpen() {
 function pathCleanup($path) {
 function pathCleanup($path) {
 	$path = preg_replace('/\/+$/', '', $path);
 	$path = preg_replace('/\/+$/', '', $path);
 	$path = preg_replace('/^\/+/', '', $path);
 	$path = preg_replace('/^\/+/', '', $path);
-	$path = preg_replace('/\?/g', '_', $path);
+	$path = preg_replace('/\?/', '_', $path);
 	return $path;
 	return $path;
 }
 }