Notifications
Clear all

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

7 Posts
2 Users
0 Reactions
1,030 Views
 Amok
(@amok)
Posts: 3
Active Member
Topic starter
 

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.

 
Posted : 03/05/2021 8:24 am
TinyWebGallery
(@admin)
Posts: 924
Prominent Member 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

 
Posted : 03/05/2021 9:50 am
 Amok
(@amok)
Posts: 3
Active Member
Topic starter
 

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?

 
Posted : 04/05/2021 8:31 am
TinyWebGallery
(@admin)
Posts: 924
Prominent Member 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

 
Posted : 05/05/2021 8:09 am
TinyWebGallery
(@admin)
Posts: 924
Prominent Member Admin
 

The parameter will be: unknown_parameter_max_length ;).

 
Posted : 05/05/2021 8:18 am
 Amok
(@amok)
Posts: 3
Active Member
Topic starter
 

Thank you very much - it is working now!

regards

Thomas

 
Posted : 05/05/2021 9:37 am
TinyWebGallery
(@admin)
Posts: 924
Prominent Member Admin
 

👍

 
Posted : 06/05/2021 7:34 am