Problem/Motivation

JS does not urlencode cookie names as I thought earlier, and it is actually able to read non-encoded cookies, like styleswitcher[theme_name]. I can't even recall how I came to opposite conclusion when explicitly made encoding in styleswitcher_save_user_preference().

Tests shown that plain styleswitcher[theme_name] cookie is OK for both JS & PHP.

Proposed resolution

Decode the cookie name.

Comments

pingwin4eg created an issue. See original summary.

pingwin4eg’s picture

Assigned: pingwin4eg » Unassigned
Status: Active » Needs review
StatusFileSize
new1.01 KB
pingwin4eg’s picture

Issue tags: +blocker

  • pingwin4eg committed 57ef69f on 7.x-2.x
    Issue #2597171 by pingwin4eg: Do not encode cookie name
    
pingwin4eg’s picture

Status: Needs review » Fixed

  • pingwin4eg committed 57ef69f on 6.x-2.x
    Issue #2597171 by pingwin4eg: Do not encode cookie name
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.