[BUGFIX] Invalid closure in AbstractMenuContentObject

Issue #58792 introduced a closure in AbstractMenuContentObject.php
which is not PHP 5.3 compatible. Since TYPO3 6.2 must still
support PHP 5.3, and master should be for now.
The closure is replaced by a simple loop.

Resolves: #61721
Releases: 6.2, master
Change-Id: Icc65bf8f8feec1bc62fcf83d8a2f464db3141c0d
Reviewed-on: http://review.typo3.org/32873
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
[TASK] Update RequireJS to 2.1.15

Resolves: #61608
Releases: master
Change-Id: Ic3ba3542bea23d852327d77821610f19844ee1e3
Reviewed-on: http://review.typo3.org/32781
Reviewed-by: Felix Kopp <felix-source@phorax.com>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
[BUGFIX] LocalDriver->calculateBasePath doesn't properly sanitize

The method "calculateBasePath" of Resource/Driver/LocalDriver.php
does not properly sanitize the passed value.

It misses to use the return value of "canonicalizeAndCheckFilePath".

Change-Id: I8f2561e4a3b432d869ba7931f3ce5877714699c0
Resolves: #61295
Releases: 6.3, 6.2
Reviewed-on: http://review.typo3.org/32548
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>