jordansamuel / PASTE

Paste is a project that started from the files pastebin.com used before it was bought.
https://phpaste.sourceforge.io/
GNU General Public License v3.0
296 stars 106 forks source link

[Ask] Can View Another People Paste #181

Closed secghost closed 3 years ago

secghost commented 3 years ago

Can you fix this parameter php?id= like this to private paste without login like https://hatebin.com/ryypygzofi cause can raw a paste other people just change number on parameter like php?id=1 to php?id=2

thinkverse commented 3 years ago

Private pastes are private and should not be visible by changing the query parameters value. Even if a user manually adds a specific id to the query parameter, if it's set to private, it's private. It doesn't matter if they specify that they want either of the raw|download|embed versions either.

If that is was you're asking, I might be misunderstanding your question, let me know. 👍

Screen Shot 2021-09-12 at 12 12 09 PM

Screen Shot 2021-09-12 at 12 12 24 PM

BGHDDevelopment commented 3 years ago

@eviltwin-id Can you provide an example of what you mean in a practical environment? Like, provide example links or screenshots?

thinkverse commented 3 years ago

this is need a login & register bro,and thats parameter make a people can view a paste just change 1 to 2 , like php?id=1 to php?id=2,can you change parameter this to random text like https://hatebin.com/{ryypygzofi}?

Yes, I can agree that having the new paste button showing doesn't really make sense in this context and that a login/register button would be more appropriate.

As for changing the parameters from IDs to something else, that has been suggested before (https://github.com/jordansamuel/PASTE/issues/38) and will be added later. For right now I'm mostly interested in fixing issues and making sure paste will work on PHP 8+. New large features will be on the back burner until then.

secghost commented 3 years ago

@thinkverse thanks bro, i will wait it a ne feature to random URL ID , i just want it , thanks