[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkdelibs=5D_kio/kio=3A_match_share_names_with_same_r?=
From:       Jonathan Riddell <jriddell () ubuntu ! com>
Date:       2011-02-16 15:42:26
Message-ID: 20110216154226.71861A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit ede506968cd43823f6ff5e74d33854838a27b98b by Jonathan Riddell.
Committed on 16/02/2011 at 16:42.
Pushed by jriddell into branch 'master'.

match share names with same regexp as isShareNameValid(), else shares with dashes etc \
in the names don't get matched

M  +1    -1    kio/kio/ksambashare.cpp     

http://commits.kde.org/kdelibs/ede506968cd43823f6ff5e74d33854838a27b98b

diff --git a/kio/kio/ksambashare.cpp b/kio/kio/ksambashare.cpp
index e689327..cb9d00c 100644
--- a/kio/kio/ksambashare.cpp
+++ b/kio/kio/ksambashare.cpp
@@ -331,7 +331,7 @@ KSambaShareData::UserShareError KSambaSharePrivate::remove(const \
KSambaShareData  bool KSambaSharePrivate::sync()
 {
     const QRegExp headerRx(QLatin1String("^\\s*\\["
-                                         "([\\w\\d\\s]+)"
+                                         "([^%<>*\?|/\\+=;:\",]+)"
                                          "\\]"));
 
     const QRegExp OptValRx(QLatin1String("^\\s*([\\w\\d\\s]+)"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic