Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 296354 Details for
Bug 240606
Pirut search with ' character instantly crashes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for this one issue.
yum-escape-searchstring-bz240606.patch (text/plain), 861 bytes, created by
Michal Fabry
on 2008-02-29 14:18:09 UTC
(
hide
)
Description:
Patch for this one issue.
Filename:
MIME Type:
Creator:
Michal Fabry
Created:
2008-02-29 14:18:09 UTC
Size:
861 bytes
patch
obsolete
>diff -Naur yum-3.2.11/yum/sqlitesack.py yum-3.2.11-original/yum/sqlitesack.py >--- yum-3.2.11/yum/sqlitesack.py 2008-02-29 15:10:38.000000000 +0100 >+++ yum-3.2.11-original/yum/sqlitesack.py 2008-02-29 14:38:41.000000000 +0100 >@@ -440,10 +440,10 @@ > if len(fields) < 1: > return result > >- basestring="select DISTINCT pkgKey from packages where %s like '%%%s%%' " % (fields[0], re.escape(searchstring)) >+ basestring="select DISTINCT pkgKey from packages where %s like '%%%s%%' " % (fields[0], searchstring) > > for f in fields[1:]: >- basestring = "%s or %s like '%%%s%%' " % (basestring, f, re.escape(searchstring)) >+ basestring = "%s or %s like '%%%s%%' " % (basestring, f, searchstring) > > for (rep,cache) in self.primarydb.items(): > cur = cache.cursor()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240606
: 296354 |
296430
|
296431
|
307182
|
307185