Project

General

Profile

Actions

Bug #856

closed
KD

Interal paths containing single quotes cause error of scrollIntoView

Bug #856: Interal paths containing single quotes cause error of scrollIntoView

Added by Anonymous about 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
06/15/2011
Due date:
% Done:

0%

Estimated time:

Description

This is the C code:

>WAnchor* a = new WAnchor( root() );
a->setRefInternalPath( "/PathContainingQuotes:'" );
// a->setRefInternalPath( "/PathContainingQuotes:%27" ); //Percent encoding does no help.
a->setText( "PathContainingQuotes:'" );

This is the Ajax response after clicking the link:
>Wt3_1_9.scrollIntoView('/PathContainingQuotes:'');

Three single quotes here lead to Javascript error.

CA Updated by con abs about 15 years ago Actions #1

I forgot login but it seems posting a bug does not need login :-)

KD Updated by Koen Deforche about 15 years ago Actions #2

  • Status changed from New to Resolved

Good catch.

I've fixed this in my local copy --- will be in git soon.

Regards,
koen

KD Updated by Koen Deforche about 15 years ago Actions #3

  • Target version set to 3.1.10

KD Updated by Koen Deforche about 15 years ago Actions #4

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom