mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 04:32:29 +02:00
Convert context value to string securely
This commit is contained in:
@@ -1046,7 +1046,8 @@ func parsePath(ctx context.Context, r *http.Request) (context.Context, error) {
|
||||
}
|
||||
|
||||
func getImageURL(ctx context.Context) string {
|
||||
return ctx.Value(imageURLCtxKey).(string)
|
||||
str, _ := ctx.Value(imageURLCtxKey).(string)
|
||||
return str
|
||||
}
|
||||
|
||||
func getProcessingOptions(ctx context.Context) *processingOptions {
|
||||
|
Reference in New Issue
Block a user