瀏覽代碼

preg_replace is not quite PCRE

Zachary Kotlarek 9 年之前
父節點
當前提交
f8d9eacac9
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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;
 }