Steps to replicate the bug:

1) Enable the Book module.
2) Create a Book page, Make it Top Level - page1
4) Create another Book page, Make it a child of page1.
5) Enter in the Title => [She said, "Hi, I'm Eunice"] (everything inside the square brackets is entered, including the double quotes)
6) Administer > Content Management > Books > the_book_page1 : Edit Order and Title

The book page which has the title containing the double quotes, now has an incorrect title, and after reordering, and saving the changes, the auto alias got confused, and somehow, there are some extra nodes generated.

The user might enter such a title, and it could mess up the system, especially when extra nodes are generated.

Is there anyway to handle this issue? (Probably by filtering the double quotes in the title during submission or .. ? )

Thanks in advance.

regards,
thepiano

Comments

gpk’s picture

Do you know for certain if the problem is in Drupal core or pathauto (I am assuming you are using this as well?)? Can you generate any errors with non-book nodes?

It would be useful if you could also search the Drupal core issue queue http://drupal.org/project/issues/search/drupal for anything similar, and possibly also the pathauto issue queue http://drupal.org/project/issues/search/pathauto.

gpk
----
www.alexoria.co.uk

ThePiano.SG’s picture

I did search there for a "double quote" issue, but no hits at all. (I tried searching on all modules after a search on just the book module)

Pathauto is not the culprit since either a Book Page, or any other content type can be created with it's title containing double quotes, and a valid URL alias is created.

The issue only comes up during the reordering of the book's pages. The title which contains the double quotes does not even appear right in the Reorder page. The text input field containing that title actually appears blank.

gpk’s picture

>Pathauto is not the culprit
To double check this, can you get the problem to occur if you disable pathauto? If so it sounds like a new issue is needed against Drupal core.

gpk
----
www.alexoria.co.uk

ThePiano.SG’s picture

I created a new book page (p1) after disabling the PathAuto module.
Title of p1 = [Trying "double quotes" again] (everything in square brackets are entered, including double quotes)

The link to p1 is now ../node/333.

Go to Administer > Content Management > Books > Reorder

Again, p1's title appears empty.

gpk’s picture