Răsfoiți Sursa

preg_replace is not quite PCRE

Zachary Kotlarek 9 ani în urmă
părinte
comite
f8d9eacac9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;
 }