mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Use \W in friendly_url()
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user