Notifications
Clear all

The request has invalid input. If you where trying to hack TWG - try again ;).

 Amok
(@amok)
New Member

Hi,

when I send Links to Facebook, they get broken and TWG shows:

The request has invalid input. If you where trying to hack TWG - try again ;).

The reason for that is Facebook add a unknown parameter as tracking id in the URL:

...&fbclid=xxxxxxxxxxx

Is it possible to ignore this parameter (or do something special with it), so that TWG is working again?

I identified one File and perhaps I can provide a patch later.

Quote
Topic starter Posted : 03/05/2021 9:24 am
TinyWebGallery
(@admin)
Administrator Admin

can you please provide the full url? Because I have several keywords if don't allow in the url. how does the xxxxx look like?

Best regards, Michael

ReplyQuote
Posted : 03/05/2021 10:50 am
 Amok
(@amok)
New Member

Of course, here is the URL that I copy&paste to Facebook:

https://flusi.amoksworld.de/gallery/index.php?twg_album=HomeCockpit

and when you hit the Link it is something like that:

https://flusi.amoksworld.de/gallery/index.php?twg_album=HomeCockpit&fbclid=IwAR2GzRkiiYl6S56LZ2_lmRzvhbeUTfqloRju0Is_RyyrT9EytwEMA3H2atY

Perhaps this tracking parameter can be usefull in some way for TWG, too?

ReplyQuote
Topic starter Posted : 04/05/2021 9:31 am
TinyWebGallery
(@admin)
Administrator Admin

this is because of the length restriction on unknown parameters. is is set to 15.

 

To change this:

search for

parse_maxlength(replaceInput($val), 15)

in inc/mysession.inc.php and set it to e.g. 100. Then your facebook url link works as well.

I will put this to a variable in the next build 2.5.

Best regards, Michael

ReplyQuote
Posted : 05/05/2021 9:09 am
TinyWebGallery
(@admin)
Administrator Admin

The parameter will be: unknown_parameter_max_length ;).

ReplyQuote
Posted : 05/05/2021 9:18 am
 Amok
(@amok)
New Member

Thank you very much - it is working now!

regards

Thomas

ReplyQuote
Topic starter Posted : 05/05/2021 10:37 am
TinyWebGallery
(@admin)
Administrator Admin

👍

ReplyQuote
Posted : 06/05/2021 8:34 am