We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit efae063b authored by Mike Sheldon's avatar Mike Sheldon

Fix deprecated use of ereg in radio adjust

parent 4768298f
......@@ -34,7 +34,7 @@ if(!$res) {
die("BADSESSION\n");
}
if(ereg('^(globaltags|artist|user)/[^:]+$', $url, $regs)) {
if(preg_match('@^(globaltags|artist|user)/[^:]+$@', $url, $regs)) {
$url = 'librefm://' . $url; // compensate for shell-fm sending incomplete urls
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment