1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

Use \W in friendly_url()

This commit is contained in:
Jakub Vrana
2025-02-26 16:44:30 +01:00
parent 45f24a8f62
commit 4de6e47c0a

View File

@@ -806,7 +806,7 @@ function format_number($val) {
*/
function friendly_url($val) {
// used for blobs and export
return preg_replace('~[^a-z0-9_]~i', '-', $val);
return preg_replace('~\W~i', '-', $val);
}
/** Print hidden fields