[haiku-webkit-commits] r461 - webkit/trunk/WebKit/haiku/WebPositive

  • From: webkit@xxxxxxxxxxxxxxx
  • To: haiku-webkit-commits@xxxxxxxxxxxxx
  • Date: Sun, 25 Apr 2010 13:45:05 +0000

Author: stippi
Date: Sun Apr 25 13:45:05 2010
New Revision: 461
URL: http://mmlr.dyndns.org/changeset/461

Log:
Make sure a filename derived from a bookmark title does not contain invalid
characters for a filename.

Modified:
   webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp

Modified: webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp
==============================================================================
--- webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Sat Apr 24 
00:46:24 2010        (r460)
+++ webkit/trunk/WebKit/haiku/WebPositive/BrowserWindow.cpp     Sun Apr 25 
13:45:05 2010        (r461)
@@ -1193,6 +1193,9 @@
                if (leafPos >= 0)
                        bookmarkName.Remove(0, leafPos + 1);
        }
+       // Make sure the bookmark title does not contain chars that are not
+       // allowed in file names.
+       bookmarkName.ReplaceAll('/', '-');
 
        // Check that the bookmark exists nowhere in the bookmark hierarchy,
        // though the intended file name must match, we don't search the stored

Other related posts:

  • » [haiku-webkit-commits] r461 - webkit/trunk/WebKit/haiku/WebPositive - webkit