bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
2.66k stars 446 forks source link

Documentation error? #1132

Closed sageworksstudio closed 5 years ago

sageworksstudio commented 5 years ago

This code example: Keeping Javascript and CSS on a Healthy Diet

$files = preg_replace('/(\.+\/)/','',$_GET['files'])); // close potential hacking attempts

Appears to have one to many ')'

Which results in this error:

Parse error: syntax error, unexpected ')'

ikkez commented 5 years ago

thx @digi-brains & @Rayne