casdoor / casdoor-dotnet-sdk

.NET client SDK for Casdoor
https://github.com/casdoor/casdoor
Apache License 2.0
28 stars 25 forks source link

fix: Duplicated question marks in the generated action url. #23

Closed AsakusaRinne closed 2 years ago

AsakusaRinne commented 2 years ago

A simple fix for the BUG that two continuous question marks will appear in the action url.

Though it seems that the duplicated question marks could also be parsed, it may be better to remove it to avoid confusion.

casbin-bot commented 2 years ago

@Steve0x2a @seriouszyx @Abingcbc @ComradeProgrammer please review

hsluoyz commented 2 years ago

@AsakusaRinne can you give an example for Duplicated question marks?

sagilio commented 2 years ago

@AsakusaRinne can you give an example for Duplicated question marks?

@hsluoyz The client maybe requests a URL to: https://door.casdoor.com/api/get-permissions??owner=&p=1&pageSize=10&field=&valu Correct URL is : https://door.casdoor.com/api/get-permissions?owner=&p=1&pageSize=10&field=&valu

but these are both successful: image