Skip to content

Commit 28dcdfd

Browse files
committed
Fix regex
1 parent 4d9899f commit 28dcdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ private function checkBest($stats, $name, $whichdistance){
825825
private function setFilename(){
826826
if(isset($_FILES['gpx']['name'])){
827827
$this->filename=basename($_FILES['gpx']['name']);
828-
$this->desc=preg_replace("/[^A-Za-z0-9ążśźęćńółĄŻŚŹĘĆŃÓŁ-\s]/u", "", $_POST['desc']);
828+
$this->desc=preg_replace("/[^\sA-Za-z0-9ążśźęćńółĄŻŚŹĘĆŃÓŁ-]/u", "", $_POST['desc']);
829829
//1-upload; 2-autoprocess
830830
$this->mode=1;
831831
}

0 commit comments

Comments
 (0)