Răsfoiți Sursa

OpenDrive doesn't like question marks

Zachary Kotlarek 9 ani în urmă
părinte
comite
f9ec708837
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      opendrive.php

+ 1 - 0
opendrive.php

@@ -53,6 +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);
 	return $path;
 	return $path;
 }
 }