Make validation for page more strict on djvu to take only numbers
authorBrian Wolff <bawolff+wn@gmail.com>
Thu, 15 May 2014 00:48:43 +0000 (21:48 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Thu, 15 May 2014 00:48:43 +0000 (21:48 -0300)
commit552b6a12e16a5c8ab0e089eb32bc4442e29797ca
tree58a4bad25506be3ab342bd001e67f19b2a276a1b
parent57a0864cece51b476d55116f9c65f0606a2f0df5
Make validation for page more strict on djvu to take only numbers

This change causes wiki syntax like
 [[File:Foo.djvu|thumb|Page 7 of document]]
to be interpreted as a caption instead, of saying select page 7
of the djvu. Previously it eventually ran intval( '7 of document' ),
so flipped to page 7.

Only possible downside I could see is this would cause things like
left-to-right marks and weird unicode spaces to no longer be ignored.
I don't think that's a big deal.

Change-Id: Ie8c953009a38557876a274bf0f71ab470f66ef4e
includes/media/DjVu.php