Giter Site home page Giter Site logo

Comments (6)

bjesus avatar bjesus commented on September 13, 2024 1

I'm seeing a similar behavior that I can't trace yet. See these tabs for example:

lr--r--r-- 1 root root 12 Jan  1  1970 WALKING_FAR_FROM_HOME_CHORDS__ver_2__by_Iron___Wine___Ultimate-Guitar.Com_75 -> ../by-id/757
lr--r--r-- 1 root root 12 Jan  1  1970 Walking___Psyche_Films_55 -> ../by-id/557
lr--r--r-- 1 root root 12 Jan  1  1970 WeChat_Is_Watching_-_Issue_73__Play_-_Nautilus_27 -> ../by-id/274
lr--r--r-- 1 root root 12 Jan  1  1970 What_Happened_When_I_Bought_A_Home_With_Sunrun_Solar_Panels_33 -> ../by-id/334
lr--r--r-- 1 root root 13 Jan  1  1970 XXXXXXXXXX_122 -> ../by-id/122
lr--r--r-- 1 root root 12 Jan  1  1970 What_I_ve_Learned_from_Hacker_News_22 -> ../by-id/224
lr--r--r-- 1 root root 13 Jan  1  1970 What_tools_are_best_for_animating_SVG_s____Designer_News_132 -> ../by-id/132
lr--r--r-- 1 root root 13 Jan  1  1970 xxxxxxxxxxxxx_101 -> ../by-id/101
lr--r--r-- 1 root root 13 Jan  1  1970 Workers___Account___Cloudflare_-_Web_Performance___Security_153 -> ../by-id/153
lr--r--r-- 1 root root 12 Jan  1  1970 Would_You_Recognize_a_Dystopia_If_You_Saw_One____The_Russell_Kirk_Center_34 -> ../by-id/344
lr--r--r-- 1 root root 12 Jan  1  1970 You_Don_t_Need_to_Quit_Your_Job_to_Make_32 -> ../by-id/324
lr--r--r-- 1 root root 11 Jan  1  1970 Calendar_-_January_2021_4 -> ../by-id/424
lr--r--r-- 1 root root 13 Jan  1  1970 XXXXXXXXXXXXXXXX_151 -> ../by-id/151
lr--r--r-- 1 root root 11 Jan  1  1970 Accounts_2 -> ../by-id/224

I masked some tab names.

Note how the last tab goes to by-id/224 even though the tab id is 2. Two tabs before it, it's tab 4 but goes to 424. It looks like tab in between, 151, is already 3 characters so it doesn't get the additional 24. The additional characters seem to change for me every now and then, as you can see the first two tabs on the list, 75 and 55, go to 757 and 557 (both don't exist).

I took a look through inspect on the extension, and it seems like the response being sent from the browser contains the correct path without the additional characters, like so:

{
  "buf": "Li4vYnktaWQvMw==",
  "op": "readlink"
}

I'm using Firefox Developer Edition on Arch.

from tabfs.

bjesus avatar bjesus commented on September 13, 2024 1

I think that what you're describing is just a sanitize function that removes special character. That seems to be by design.

from tabfs.

csarven avatar csarven commented on September 13, 2024

Possibly related issue #18

from tabfs.

curiosor avatar curiosor commented on September 13, 2024

is it an encoding problem? in my situation, a tab with title "微软 Bing 搜索 - 国际版" becomes "(underscore3)Bing(underscore4)-(underscore*5)"
direct copy-paste dosen't work here, because github comment filters out continuous underscores

from tabfs.

osnr avatar osnr commented on September 13, 2024

Yeah, it sounds like this is just a C-side problem. I'm still looking at the pull requests that have come in.

(I think it would be a good idea to change the design of sanitize to be more tolerant and let characters in other languages through; what we have right now was just the first thing I thought to write. It only really needs to filter stuff like whitespace that is annoying on the shell, if it needs to exist at all. This might also require making sure all the encoding stuff for readlink (ex) is correct for all of UTF-8, which I haven't checked.)

from tabfs.

osnr avatar osnr commented on September 13, 2024

@curiosor you may also be interested in #59 where folks have implemented some more tolerant sanitizers

from tabfs.

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.