Giter Site home page Giter Site logo

Comments (13)

misterunknown avatar misterunknown commented on May 28, 2024

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.

misterunknown avatar misterunknown commented on May 28, 2024

By the way: Can you fix this by setting forceproxy to true?

from ifm.

misterunknown avatar misterunknown commented on May 28, 2024

Any update on this?

from ifm.

novashdima avatar novashdima commented on May 28, 2024

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.

novashdima avatar novashdima commented on May 28, 2024

Hmm... see another problem with ' (%27)

from ifm.

misterunknown avatar misterunknown commented on May 28, 2024

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.

novashdima avatar novashdima commented on May 28, 2024

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.

misterunknown avatar misterunknown commented on May 28, 2024

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.

SaswatPadhi avatar SaswatPadhi commented on May 28, 2024

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.

novashdima avatar novashdima commented on May 28, 2024

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.

novashdima avatar novashdima commented on May 28, 2024

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.

misterunknown avatar misterunknown commented on May 28, 2024

Also how / where do I set forceproxy?

You can set this with environment variables in docker using -e IFM_GUI_FORCEPROXY=1.

from ifm.

misterunknown avatar misterunknown commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.