Fix the sql injection vulnerability on sl_pages

Fix the sql injection vulnerability