Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Joakim Saario
  • aurweb
  • Repository
Switch branch/tag
  • aurweb
  • web
  • lib
  • aur.inc.php
Find file BlameHistoryPermalink
  • Lukas Fleischer's avatar
    Escape wildcards in "LIKE" patterns · 47c5167a
    Lukas Fleischer authored Oct 20, 2011
    Percent signs ("%") and underscores ("_") are not escaped by
    mysql_real_escape_string() and are interpreted as wildcards if combined
    with "LIKE". Write a wrapper function db_escape_like() and use it where
    appropriate.
    
    Note that we already fixed this for the RPC interface in commit
    da2ebb66
    
     but missed the other places.
    This patch should fix all remaining flaws reported in FS#26527.
    
    Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
    Signed-off-by: default avatarDan McGee <dan@archlinux.org>
    47c5167a