Commit 809ec99c authored by Michael McAndrew's avatar Michael McAndrew

add requirements back to slug

parent cc20b882
......@@ -26,7 +26,7 @@ class ReadController extends Controller {
* Displays a page for one book which shows the various languages and
* versions available for the book
* @route("/{slug}/", name="book")
* @route("/{slug}/", name="book", requirements={"slug": "(?!_)(?!admin/)[^/]+"})
public function BookAction($slug) {
/** @var \AppBundle\Model\Library */
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