Parcourir la source

OpenDrive doesn't like question marks

Zachary Kotlarek il y a 9 ans
Parent
commit
f9ec708837
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      opendrive.php

+ 1 - 0
opendrive.php

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