Explorar o código

preg_replace is not quite PCRE

Zachary Kotlarek %!s(int64=9) %!d(string=hai) anos
pai
achega
f8d9eacac9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      opendrive.php

+ 1 - 1
opendrive.php

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