fix EXIF-rotated images shown cropped in previews, closes #4482JPEGs with EXIF orientation 5/6/7/8 were rendered cropped in themediamanager detail view, the image diff view and the fullscreendeta
fix EXIF-rotated images shown cropped in previews, closes #4482JPEGs with EXIF orientation 5/6/7/8 were rendered cropped in themediamanager detail view, the image diff view and the fullscreendetail page: getimagesize() / JpegMeta report raw (rotation-unaware)pixel dimensions, and passing both w and h to fetch.php defaults tocenter-crop.- Bump splitbrain/slika to 1.1, which ships ImageInfo: a rotation- aware, metadata-only dimension simulator mirroring Adapter's fluent API (autorotate/resize/crop).- Add fit=1 to fetch.php: when both w and h are given, route to media_resize_image() (bbox fit) instead of media_crop_image(). Token hashes only (id, w, h) so existing tokens stay valid.- Add MediaFile::getDisplayDimensions($w, $h, $crop) which delegates to ImageInfo and returns the dims fetch.php would produce.- Add Display::getDetailHtml() and retire media_preview() / the old media_image_preview_size() helper. media_tab_view and MediaDiff now share the Display-based renderer.- Rewrite tpl_img() (lib/tpl/*/detail.php) to use MediaFile dims + fit=1 URL; drops the manual ratio math.- Tests: MediaFileTest covers the dims math, DisplayTest covers the detail-view HTML (rotated dims, rev-vs-timestamp URL selection, structure), fetch_imagetoken gains a fit-token compat test. Fixture _test/data/media/wiki/exif-orient-6.jpg: 20x30 JPEG with EXIF orientation 6.
show more ...
Remove the htmlok and phpok embedding optionsBoth options have grave security implications and novice users seem toignore advice about them. In the last decades I never came across a wikithat had
Remove the htmlok and phpok embedding optionsBoth options have grave security implications and novice users seem toignore advice about them. In the last decades I never came across a wikithat had legitimate use of these options.If someone needs the functionality, it can easily be added back using aplugin. But I prefer to give users one less option to shoot themselvesin the foot.Removal of the translations for the config strings can follow after thishas been merged.
add new log dir to test data directory
move test page somewhere else to not interfere with other tests
Test code for workflow 'show - sectionedit - save/cancel' (with modifications in test classes and 'send_redirect()' and 'act_dispatch()'.
more cleanup in embedSVGnow comments and line breaks between tags are removed
Fixed broken links to php.net and redirecting pages to php.net
Losslessly reduced PNG images with optipng -o7 -strip all, advdef -z4 -i60, and advpng -z4 -i60.
Add test for internal video files
Added tests for getRevisions and getRevisionInfo from page changelog
some cleanupremoved unneeded data files, converted tabs to spaces
moved _testing to _test