Needs work
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Aug 2012 at 06:27 UTC
Updated:
12 Aug 2025 at 22:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
timmillwoodLooks good here!
Comment #2
webchickEr. Can I get confirmation on this from someone on the D8MI team?
Comment #3
guillaumev commentedIs there any plan to have this patch backported to 7.x ?
Comment #4
sutharsan commented@droplet, can you explain what problem we are solving here?
Comment #5
droplet commentedhtacess prevents po format from download. therefore we can't share PO files.
Comment #6
sutharsan commentedPlease explain the use case for sharing po's.
Comment #7
droplet commentedjust want to share a po file.
l10_server shares a po file.
any reason to protect it ?
Comment #8
sutharsan commentedSee this discussion back in 2006 which introduced the po extension in the .htaccess file. #105300: Protect PO files from being read over HTTP I think it is still valid.
Comment #9
droplet commentedPO files named like moduleName-versionNumber.po... It telling hackers the modules version...... and there is no more commit hash included in LDO's PO files.
If someone save the password inside PO file, that's crazy. OKay, I've never assumed they won't ....
Comment #10
guillaumev commentedJust in case someone needs a working patch for the latest version of Drupal 7...
Comment #12
jair commentedNeeds reroll
Comment #13
guillaumev commentedNew patch for 7.23
Comment #14
garphyRerolled for D8.
@guillaumev, could you please name your d7 backport patches so it's more obvious when reading the patch filename.
Comment #15
garphyComment #16
guillaumev commentedHere is a patch for Drupal 7.24.
Comment #17
sutharsan commentedI think this summarises the arguments:
Reasons to protect PO format:
Reasons not not protect:
Comment #18
droplet commentedPO files are stored in file dir in D8 which meant to be public (or private path based on your settings)
Comment #19
jhedstromFolks seem divided on whether these should be public by default, or not. #17 summarizes this issue fairly well.
Comment #20
areke commentedComment #21
droplet commented2 points in #17 are pointless.
1. Drupal Core shows the version number in HTML source code as well. There's an issues about removing it but rejected by top Core developers. I don't see any reason that won't apply to modules
2. why don't save in private dir by default then ??
Comment #22
gábor hojtsy@droplet: Drupal does not actually output version number of modules on your site. By probing the translations directory (sites/default/files/translations by default), scripts could collect which modules you run and which versions. While it is perfectly fine to let .po files be uploaded at other locations, the translations subdirectory used for downloading translations could pose a security risk.
Retitled according to that. That would mean that while removing the deny from the .htaccess for files, the configurable translations directory needs its own deny rule generated.
Comment #36
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #37
smustgrave commentedThis looks like it could actually still be a valid task.