Reini Urban - 2008-05-06

Logged In: YES
user_id=13755
Originator: NO

You are right. glob_to_pcre is awful and on some email notification pages you get stupid warnings.

I've made a testscript.
Does this pass without warnings?

foreach (array(
"test",
"test",
"test
.mpg",
"Calendar/test.mpg",
"Calendar/
",
"test.mpg",
"test*",
"test.
",
"test.",
"test$",
"
test",
"*test.mpg",
"te()st",
"tes(t]",
"tes<t>",
) as $s) {
echo '"', $s, '" => "', glob_to_pcre($s), "\"\n";
}

?>