mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 00:28:34 +02:00
Use \W in friendly_url()
This commit is contained in:
@@ -806,7 +806,7 @@ function format_number($val) {
|
|||||||
*/
|
*/
|
||||||
function friendly_url($val) {
|
function friendly_url($val) {
|
||||||
// used for blobs and export
|
// used for blobs and export
|
||||||
return preg_replace('~[^a-z0-9_]~i', '-', $val);
|
return preg_replace('~\W~i', '-', $val);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Print hidden fields
|
/** Print hidden fields
|
||||||
|
Reference in New Issue
Block a user