https://bugzilla.wikimedia.org/show_bug.cgi?id=34042
Web browser: ---
Bug #: 34042
Summary: Can no longer download files with Short-URLs and
img_auth.php enabled
Product: MediaWiki
Version: 1.18.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Images and files
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 9925
--> https://bugzilla.wikimedia.org/attachment.cgi?id=9925
Make img_auth.php working with with Short-URLs and img_auth.php enabled
Since Version 1.18 it was not longer possible to download Images when using
Short URLs (Apache configuration "Alias /wiki/images
/srv/www/vhosts/DOMAIN/mediawiki/webroot/img_auth.php").
Today I have debugged this issue, and found, that the $path variable in
img_auth.php isn't set correctly, as the path is always prefixed with "images/"
( or "img_auth.php/ when calling it without the apache Alias directive)", and
therefore the real path can not be found.
I have prepeared a patch which fixes this problem for me, stripping of the
filename when necessary. I currently do not have a MW base-installation
available here, so I don't know if the patch has any negative influence on mor
simple configurations...
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l