Comments (13)
This should not happen, because the hash sign gets url-encoded. Can you give some more information about your software (IFM version, webserver, OS, etc.)?
One test example can be found here, where both the directory and the file contains a hash sign:
https://ifmdemo.gitea.de/#D%25%26%24%C2%A7iy%3D)%D0%A1%D0%B0%D0%B9%D0%BD%20%D0%B1%D0%B0%D0%B9%D0%BD%D0%B0(%7B%7D%3F%60-.%2C%23%2B'*%22wh%5E%C2%B0sp%E5%A4%B1%E5%8F%8Bs%F0%9F%98%B1
(I cant link it directly because the directory also contains a closing bracket which interferes with the github markdown syntax, and I don't know how to escape that).
from ifm.
By the way: Can you fix this by setting forceproxy
to true?
from ifm.
Any update on this?
from ifm.
No, forceproxy didn't fix it
Check pull request 155, mb fix it.
I check w/ filenames:
new"file.txt new#file.txt new'file.txt newfil'\''_+="``'$'\321\227\321\224\321\215''e.txt newfile.txt#123
from ifm.
Hmm... see another problem with ' (%27)
from ifm.
Hmm... see another problem with ' (%27)
Ok, which webserver do you use? I tested with apache2 and nginx, and there it works even without url-escaping single and double quotes.
from ifm.
Hmm... see another problem with ' (%27)
Ok, which webserver do you use? I tested with apache2 and nginx, and there it works even without url-escaping single and double quotes.
Nginx 1.19.
Try to create new file from web panel, put single quote in filename, edit file by edit button and try to open this file by link.
In my case I see blank page (or empty file), but if I open it I see it's not empty.
Very strange, but from home PC all right...
Maybe browser cache :)
from ifm.
Hm, I can't reproduce this on https://ifmdemo.gitea.de or a test instance with nginx. What does
curl -i <url_to_file>
say?
By the way: I don't have any strong opinions on this; if you want to add single and double quotes escaping to hrefEncode
feel free :)
from ifm.
Hi,
Sorry for the delayed response! This week has been super busy. I am running IFM within docker
(Dockerfile). You could test with this image.
Also how / where do I set forceproxy
?
Thanks!
from ifm.
Hm, I can't reproduce this on https://ifmdemo.gitea.de or a test instance with nginx. What does
curl -i <url_to_file>
say?
Checked on work PC now - all right.
Maybe it's really was browser cache.
By the way: I don't have any strong opinions on this; if you want to add single and double quotes escaping to
hrefEncode
feel free :)
Yes, I know, thx :)
from ifm.
Also how / where do I set
forceproxy
?
In array $defaultconfig in php file, line 59.
Also check fix in latest commit in master.
from ifm.
Also how / where do I set
forceproxy
?
You can set this with environment variables in docker using -e IFM_GUI_FORCEPROXY=1
.
from ifm.
But @novashdima is right, this is caused by an older IFM version which has this bug. I just tested it with your docker image.
I really should release a new version soon, since there were already some bugfixes and changes.
If you want to fix this you have two options:
- use the official docker image here. This image is build based upon this repository, and contains the latest changes.
- edit your image to compile and use the latest IFM version
from ifm.
Related Issues (20)
- Nothing displayed if "auth" => 1 HOT 19
- Content-Security-Policy incompatibilities HOT 5
- Overwrite warning even when file doesn't exist HOT 1
- Some files cannot be edited HOT 8
- Picture previews wonβt close HOT 5
- File creation w/ exists filename HOT 1
- RemoteUpload & AjaxRequest HOT 2
- Feature request: custom colours HOT 2
- Doesn't work on raspberry pi HOT 2
- chdir(): No such file or directory (errno 2) in /app/public/files/index.php on line 5926" HOT 2
- Folder upload doesn't work HOT 1
- How to use a non-user owner:group to delete files in a folder HOT 3
- Discussion: Current state HOT 3
- Outdated release (Oct 2020) HOT 1
- Hint on where the configuration is contained HOT 2
- ZipArchive Class Not Found HOT 1
- Directory Access? HOT 2
- Corrupted picture files HOT 3
- PHP Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) HOT 1
- [up] arrow does not return to previous directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ifm.