Commit c42c7b39 authored by Jørgen Bøhnsdalen's avatar Jørgen Bøhnsdalen

Fix for bug #230

parent da3ac1b2
......@@ -33,7 +33,7 @@ function simplify_license($license) {
foreach ($licenses as $key => $l) {
foreach ($l as $urlschema) {
if (ereg($urlschema, $license)) return $key;
if (preg_match("|$urlschema|", $license)) return $key;
}
}
......@@ -51,7 +51,7 @@ function is_free_license($license) {
foreach ($licenses as $key => $l) {
foreach ($l as $urlschema) {
if (ereg($urlschema, $license)) {
if (preg_match("|$urlschema|", $license)) {
return true;
}
}
......
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