Member
Member
gothick   2010-08-14, 15:57
#1

I just upgraded to 1.3.1. I'm trying to duplicate an existing theme as a starting point for my own theme, but I'm getting an error.

I press the "duplicate" button, beside the "Zenpage" theme. I leave the default options of "My Theme" and "my_theme" for the name and directory. The theme doesn't get duplicated; instead I'm dumped on the Overview page with a red warning box that says:

"theme" Cross Site Request Forgery blocked.

...and then just fades away.

Any ideas what I could be doing wrong?

Thanks,

Matt

Member
Member
gothick   2010-08-14, 17:18
#2

On further investigation, I think this may be a bug in admin-themes.php -- the jQuery to launch the theme copy says:

launchScript('',['action=copytheme&ampXSRFToken=','source='+encodeURIComponent(source),'target='+encodeURIComponent(targetdir),'name='+encodeURIComponent(targetname)]);

...which seems to be causing the XSRFToken parameter actually to be received under the name amp;XSRFToken.

Is this maybe because it would need to be entity-encoded in HTML, but not in the JavaScript? Copy-and-paste error, maybe?

Not too sure I'm right, though, but I'm going to keep fiddling.

Cheers,

Matt

Administrator
Administrator
acrylian   2010-08-14, 17:19
#3

This might be a bug with the recent introduced XSRF security enhancements. Best you open a ticket with your description of this issue.

Member
Member
gothick   2010-08-14, 17:29
#4

Cheers. Done. http://www.zenphoto.org/trac/ticket/1581

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.